Class ApiExceptionMiddleware
Middleware that handles exceptions thrown during request processing by reporting them to the client as API errors. Exceptions are mapped using the registered IApiExceptionHandler (if any); otherwise ApiException instances are reported as-is and other exceptions propagate.
Namespace: Singulink.Net.Http.Api.Service
Assembly: Singulink.Net.Http.Api.Service.dll
Syntax
public class ApiExceptionMiddleware
Constructors
| Name | Description |
|---|---|
| ApiExceptionMiddleware(RequestDelegate) | Initializes a new instance of the ApiExceptionMiddleware class with the specified request delegate. |
Methods
| Name | Description |
|---|---|
| InvokeAsync(HttpContext) | Invokes the middleware to handle exceptions thrown during request processing. |