Class DefaultExceptionHandler
Defines a default exception handler for exceptions thrown which are not explicitly handled.
Inheritance
System.Object
DefaultExceptionHandler
Implements
IHttpContextExceptionHandler<Exception>
Namespace: MADE.Web.Exceptions
Assembly: MADE.Web.dll
Syntax
public class DefaultExceptionHandler : object, IHttpContextExceptionHandler<Exception>
Methods
| Improve this Doc View SourceHandleAsync(HttpContext, Exception)
Handles the specified exception for the given context.
Declaration
public async Task HandleAsync(HttpContext context, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
HttpContext | context | The request context. |
Exception | exception | The exception thrown. |
Returns
Type | Description |
---|---|
Task | An asynchronous operation. |