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
InvokeAsync<T>(IExecutionContext)
Handles and processes any exception thrown from underlying handlers.
public override Task<T> InvokeAsync<T>(IExecutionContext executionContext) where T : AmazonWebServiceResponse, new()
Parameters
executionContext
IExecutionContextThe execution context, it contains the request and response context.
Returns
- Task<T>
A task that represents the asynchronous operation.
Type Parameters
T
The response type for the current request.
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.