Handling Global Exceptions in ASP.NET Core
Handling Global Exceptions in ASP.NET Core: Handling Global Exceptions in ASP.NET Core.
Updated
- Handling Global Exceptions in ASP.NET Core (Freelancer): AddProblemDetails and UseExceptionHandler catch every exception an action doesn't, log it, and answer with a tidy 500 problem details response that never shows the stack trace. An IExceptionHandler can answer chosen exceptions with a better status, such as 409 Conflict.