Merge Similiar Exceptions across the Entities #162
Labels
No labels
CI/CD
MongoDB
PostgreSQL
api
authentication
bug
documentation
duplicate
enhancement
example issue
fix
good first issue
help wanted
high-level requirement
infrastructure
invalid
low-level requirement
medium-level requirement
question
security
test
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AndreFerreira5/starranja#162
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.