Interface IHttpContextExceptionHandler<TException>
Defines an interface for a
Namespace: MADE.Web.Exceptions
Assembly: MADE.Web.dll
Syntax
public interface IHttpContextExceptionHandler<in TException>
where TException : Exception
Type Parameters
| Name | Description |
|---|---|
| TException | The type of exception thrown. |
Methods
| Improve this Doc View SourceHandleAsync(HttpContext, TException)
Handles the specified exception for the given context.
Declaration
Task HandleAsync(HttpContext context, TException exception)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpContext | context | The request context. |
| TException | exception | The exception that was thrown. |
Returns
| Type | Description |
|---|---|
| Task | An asynchronous operation. |