public class DefaultFailedExecutionContext extends Object implements Context.FailedExecution
Context.FailedExecution
.Constructor and Description |
---|
DefaultFailedExecutionContext(InterceptorContext interceptorContext,
Throwable exception) |
Modifier and Type | Method and Description |
---|---|
Throwable |
exception()
The exception associated with the failed execution.
|
Optional<SdkHttpFullRequest> |
httpRequest()
The latest version of the
SdkHttpFullRequest available when the execution failed. |
Optional<SdkHttpFullResponse> |
httpResponse()
The latest version of the
SdkHttpFullResponse available when the execution failed. |
SdkRequest |
request()
The latest version of the
SdkRequest available when the execution failed. |
Optional<SdkResponse> |
response()
The latest version of the
SdkResponse available when the execution failed. |
public DefaultFailedExecutionContext(InterceptorContext interceptorContext, Throwable exception)
public SdkRequest request()
Context.FailedExecution
SdkRequest
available when the execution failed. This will never return null.request
in interface Context.FailedExecution
public Optional<SdkHttpFullRequest> httpRequest()
Context.FailedExecution
SdkHttpFullRequest
available when the execution failed. If the execution failed
before or during request marshalling, this will return Optional.empty()
.httpRequest
in interface Context.FailedExecution
public Optional<SdkHttpFullResponse> httpResponse()
Context.FailedExecution
SdkHttpFullResponse
available when the execution failed. If the execution failed
before or during transmission, this will return Optional.empty()
.httpResponse
in interface Context.FailedExecution
public Optional<SdkResponse> response()
Context.FailedExecution
SdkResponse
available when the execution failed. If the execution failed before or
during response unmarshalling, this will return Optional.empty()
.response
in interface Context.FailedExecution
public Throwable exception()
Context.FailedExecution
exception
in interface Context.FailedExecution
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.