ExceptionHandler Class


Represents an unhandled exception handler.

Namespace:   System.Web.Http.ExceptionHandling
Assembly:  System.Web.Http (in System.Web.Http.dll)

Inheritance Hierarchy



public abstract class ExceptionHandler : IExceptionHandler
public ref class ExceptionHandler abstract : IExceptionHandler
type ExceptionHandler = 
        interface IExceptionHandler
Public MustInherit Class ExceptionHandler
    Implements IExceptionHandler


Name Description
System_CAPS_protmethod ExceptionHandler()

Initializes a new instance of the ExceptionHandler class.


Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod Handle(ExceptionHandlerContext)

When overridden in a derived class, handles the exception synchronously.

System_CAPS_pubmethod HandleAsync(ExceptionHandlerContext, CancellationToken)

When overridden in a derived class, handles the exception asynchronously.

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ShouldHandle(ExceptionHandlerContext)

Determines whether the exception should be handled.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Explicit Interface Implementations

Name Description
System_CAPS_pubinterfaceSystem_CAPS_privmethod IExceptionHandler.HandleAsync(ExceptionHandlerContext, CancellationToken)

Extension Methods

Name Description
System_CAPS_pubmethod HandleAsync(ExceptionContext, CancellationToken)

Calls an exception handler and determines the response handling it, if any.(Defined by ExceptionHandlerExtensions.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

System.Web.Http.ExceptionHandling Namespace

Return to top