Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom error class #110

Open
MrSquaare opened this issue Mar 18, 2023 · 0 comments
Open

Custom error class #110

MrSquaare opened this issue Mar 18, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@MrSquaare
Copy link

Is your feature request related to a problem? Please describe.
Throw errors use the Error base class, it is difficult to process the caught errors differently (e.g.: with an exception filter)

Have you read the Contributing Guidelines?

Yes

Describe the solution you'd like
Use custom error classes
This would also allow adding a context (ex: I have two entities A and B with a many-to-many relation, I add several relations A to B where one is invalid, the custom error could contain the list of invalid identifiers)

@MrSquaare MrSquaare added the enhancement New feature or request label Mar 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant