Merge Similiar Exceptions across the Entities #162

Open
opened 2025-12-11 16:50:33 +00:00 by duarteneves5 · 0 comments
duarteneves5 commented 2025-12-11 16:50:33 +00:00 (Migrated from github.com)

as pointed out by @JoaoTF03, instead of having individual exceptions for each entity, e.g, ClientNotFoundError, WorkOrderNotFoundError, we should use a general exception for common error scenarios across entities.

Given that the exceptions should be converged to a single exception that will be shared between all entities, and that exception will take as a parameter what entity is raising the exception, e.g: Client, WorkOrder.

as pointed out by @JoaoTF03, instead of having individual exceptions for each entity, e.g, ClientNotFoundError, WorkOrderNotFoundError, we should use a general exception for common error scenarios across entities. Given that the exceptions should be converged to a single exception that will be shared between all entities, and that exception will take as a parameter what entity is raising the exception, e.g: Client, WorkOrder.
Sign in to join this conversation.
No description provided.