Interface IHttpContextExceptionHandler<TException>
- Namespace
- MADE.Web.Exceptions
- Assembly
- MADE.Web.dll
Defines an interface for a HttpContext exception handler.
public interface IHttpContextExceptionHandler<in TException> where TException : Exception
Type Parameters
TExceptionThe type of exception thrown.
- Extension Methods
Methods
HandleAsync(HttpContext, TException)
Handles the specified exception for the given context.
Task HandleAsync(HttpContext context, TException exception)
Parameters
contextHttpContextThe request context.
exceptionTExceptionThe exception that was thrown.
Returns
- Task
An asynchronous operation.