-
Notifications
You must be signed in to change notification settings - Fork 12
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
Feature: Catch all database exceptions #1247
Comments
@hocinehacherouf , what about catching all unhandled exceptions in the ASP.NET core and translate it to -- EDIT |
Discussed today:
See https://learn.microsoft.com/en-us/aspnet/core/fundamentals/middleware/write?view=aspnetcore-6.0 for documentation about how writing a custom middleware. In our case we will add custom maps to the ProblemDetailsMiddleware:
|
See https://github.com/Giorgi/EntityFramework.Exceptions to provide a better way to catch EntityFramework exceptions. |
* resolve #1247 * fix unit test * update test * delete useless using * update test * update test * update test * delete unused parameter * add missing caracter * add new test to edge device list * request change
Describe the solution you'd like
All database exceptions must be translated to
InternalServerErrorException
The text was updated successfully, but these errors were encountered: