Table of Contents

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

TException

The 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

context HttpContext

The request context.

exception TException

The exception that was thrown.

Returns

Task

An asynchronous operation.