Class DefaultFailedExecutionContext
java.lang.Object
software.amazon.awssdk.core.internal.interceptor.DefaultFailedExecutionContext
- All Implemented Interfaces:
Context.FailedExecution
,ToCopyableBuilder<DefaultFailedExecutionContext.Builder,
DefaultFailedExecutionContext>
public class DefaultFailedExecutionContext
extends Object
implements Context.FailedExecution, ToCopyableBuilder<DefaultFailedExecutionContext.Builder,DefaultFailedExecutionContext>
An SDK-internal implementation of
Context.FailedExecution
.-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The exception associated with the failed execution.The latest version of theSdkHttpRequest
available when the execution failed.The latest version of theSdkHttpResponse
available when the execution failed.request()
The latest version of theSdkRequest
available when the execution failed.response()
The latest version of theSdkResponse
available when the execution failed.Take this object and create a builder that contains all of the current property values of this object.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
request
Description copied from interface:Context.FailedExecution
The latest version of theSdkRequest
available when the execution failed. This will never return null.- Specified by:
request
in interfaceContext.FailedExecution
-
httpRequest
Description copied from interface:Context.FailedExecution
The latest version of theSdkHttpRequest
available when the execution failed. This may be aSdkHttpFullRequest
; if so, it can be accessed by casting the returnedSdkHttpRequest
. If the execution failed before or during request marshalling, this will returnOptional.empty()
.- Specified by:
httpRequest
in interfaceContext.FailedExecution
-
httpResponse
Description copied from interface:Context.FailedExecution
The latest version of theSdkHttpResponse
available when the execution failed. This may be aSdkHttpFullResponse
; if so, it can be accessed by casting the returnedSdkHttpResponse
. If the execution failed before or during transmission, this will returnOptional.empty()
.- Specified by:
httpResponse
in interfaceContext.FailedExecution
-
response
Description copied from interface:Context.FailedExecution
The latest version of theSdkResponse
available when the execution failed. If the execution failed before or during response unmarshalling, this will returnOptional.empty()
.- Specified by:
response
in interfaceContext.FailedExecution
-
exception
Description copied from interface:Context.FailedExecution
The exception associated with the failed execution. This is the reason the execution has failed, and is the exception that will be returned or thrown from the client method call. This will never return null.- Specified by:
exception
in interfaceContext.FailedExecution
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<DefaultFailedExecutionContext.Builder,
DefaultFailedExecutionContext> - Returns:
- a builder for type T
-
builder
-