Table of Contents

Class ErrorCallbackHandler

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

This handler provides an OnError action that can be used as hook for external code to handle exceptions in the runtime pipeline.

public class ErrorCallbackHandler : PipelineHandler, IPipelineHandler
Inheritance
ErrorCallbackHandler
Implements
Inherited Members

Constructors

ErrorCallbackHandler()

public ErrorCallbackHandler()

Properties

OnError

Action to execute if an exception occurs during the execution of any underlying handlers.

public Action<IExecutionContext, Exception> OnError { get; set; }

Property Value

Action<IExecutionContext, Exception>

Methods

HandleException(IExecutionContext, Exception)

Executes the OnError action if an exception occurs during the execution of any underlying handlers.

protected void HandleException(IExecutionContext executionContext, Exception exception)

Parameters

executionContext IExecutionContext
exception Exception

InvokeAsync<T>(IExecutionContext)

public override Task<T> InvokeAsync<T>(IExecutionContext executionContext) where T : AmazonWebServiceResponse, new()

Parameters

executionContext IExecutionContext

Returns

Task<T>

Type Parameters

T

InvokeSync(IExecutionContext)

public override void InvokeSync(IExecutionContext executionContext)

Parameters

executionContext IExecutionContext