Table of Contents

Class HttpErrorResponseExceptionHandler

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

The exception handler for HttpErrorResponseException exception.

public class HttpErrorResponseExceptionHandler : ExceptionHandler<HttpErrorResponseException>, IExceptionHandler<HttpErrorResponseException>, IExceptionHandler
Inheritance
HttpErrorResponseExceptionHandler
Implements
Inherited Members

Constructors

HttpErrorResponseExceptionHandler(ILogger)

The constructor for HttpErrorResponseExceptionHandler.

public HttpErrorResponseExceptionHandler(ILogger logger)

Parameters

logger ILogger

in instance of ILogger.

Methods

HandleException(IExecutionContext, HttpErrorResponseException)

Handles an exception for the given execution context.

public override bool HandleException(IExecutionContext executionContext, HttpErrorResponseException exception)

Parameters

executionContext IExecutionContext

The execution context, it contains the request and response context.

exception HttpErrorResponseException

The exception to handle.

Returns

bool

Returns a boolean value which indicates if the original exception should be rethrown. This method can also throw a new exception to replace the original exception.

HandleExceptionAsync(IExecutionContext, HttpErrorResponseException)

Handles an exception for the given execution context.

public override Task<bool> HandleExceptionAsync(IExecutionContext executionContext, HttpErrorResponseException exception)

Parameters

executionContext IExecutionContext

The execution context, it contains the request and response context.

exception HttpErrorResponseException

The exception to handle.

Returns

Task<bool>

Returns a boolean value which indicates if the original exception should be rethrown. This method can also throw a new exception to replace the original exception.