ExceptionHandler Class
Represents an unhandled exception handler.
Namespace: System.Web.Http.ExceptionHandling
Assembly: System.Web.Http (in System.Web.Http.dll)
Inheritance Hierarchy
System.Object
System.Web.Http.ExceptionHandling.ExceptionHandler
Syntax
public abstract class ExceptionHandler : IExceptionHandler
public ref class ExceptionHandler abstract : IExceptionHandler
[<AbstractClass>]
type ExceptionHandler =
class
interface IExceptionHandler
end
Public MustInherit Class ExceptionHandler
Implements IExceptionHandler
Constructors
Name | Description | |
---|---|---|
ExceptionHandler() | Initializes a new instance of the ExceptionHandler class. |
Methods
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
Handle(ExceptionHandlerContext) | When overridden in a derived class, handles the exception synchronously. |
|
HandleAsync(ExceptionHandlerContext, CancellationToken) | When overridden in a derived class, handles the exception asynchronously. |
|
MemberwiseClone() | (Inherited from Object.) |
|
ShouldHandle(ExceptionHandlerContext) | Determines whether the exception should be handled. |
|
ToString() | (Inherited from Object.) |
Explicit Interface Implementations
Name | Description | |
---|---|---|
IExceptionHandler.HandleAsync(ExceptionHandlerContext, CancellationToken) |
Extension Methods
Name | Description | |
---|---|---|
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