bc9f2348103a98e94717a61eb57fc614b7b842bd
Introduced `ExceptionHandlingMiddleware` to handle exceptions globally in the application. The middleware captures exceptions thrown during the request pipeline, logs them, and returns appropriate HTTP responses in JSON format. Key features: - Handles `JobException` with a 400 Bad Request response. - Handles unhandled exceptions with a 500 Internal Server Error. - Logs warnings for `JobException` and errors for unhandled exceptions. - Sets response `ContentType` to `application/json` and writes error details as JSON. Added necessary `using` directives for required namespaces.
Description
No description provided
Languages
Visual Basic .NET
59.2%
HTML
34%
C#
5%
CSS
1.8%