Class ErrorHandler
This handler processes exceptions thrown from the HTTP handler and unmarshalls error responses.
public class ErrorHandler : PipelineHandler, IPipelineHandler
- Inheritance
-
ErrorHandler
- Implements
- Inherited Members
Constructors
ErrorHandler(ILogger)
Constructor for ErrorHandler.
public ErrorHandler(ILogger logger)
Parameters
logger
ILoggeran ILogger instance.
Properties
ExceptionHandlers
Default set of exception handlers.
public IDictionary<Type, IExceptionHandler> ExceptionHandlers { get; }
Property Value
Methods
InvokeAsyncCallback(IAsyncExecutionContext)
Handles and processes any exception thrown from underlying handlers.
protected override void InvokeAsyncCallback(IAsyncExecutionContext executionContext)
Parameters
executionContext
IAsyncExecutionContextThe execution context, it contains the request and response context.
InvokeSync(IExecutionContext)
Handles and processes any exception thrown from underlying handlers.
public override void InvokeSync(IExecutionContext executionContext)
Parameters
executionContext
IExecutionContextThe execution context which contains both the requests and response context.