Table of Contents

Class ErrorHandler

Namespace
Amazon.Runtime.Internal
Assembly
AWSSDK.Core.dll

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 ILogger

an ILogger instance.

Properties

ExceptionHandlers

Default set of exception handlers.

public IDictionary<Type, IExceptionHandler> ExceptionHandlers { get; }

Property Value

IDictionary<Type, IExceptionHandler>

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 IExecutionContext

The 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 IExecutionContext

The execution context which contains both the requests and response context.