TekH bc9f234810 Add global exception handling middleware
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.
2026-08-04 20:37:11 +02:00
2022-12-20 15:29:29 +01:00
2023-01-17 08:43:08 +01:00
2023-01-17 08:43:08 +01:00
Description
No description provided
1,006 KiB
Languages
Visual Basic .NET 59.2%
HTML 34%
C# 5%
CSS 1.8%