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

InvokeAsyncCallback(IAsyncExecutionContext)

Handles and processes any exception thrown from underlying handlers.

protected override void InvokeAsyncCallback(IAsyncExecutionContext executionContext)

Parameters

executionContext IAsyncExecutionContext

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

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