public class DefaultFailedExecutionContext extends Object implements Context.FailedExecution, ToCopyableBuilder<DefaultFailedExecutionContext.Builder,DefaultFailedExecutionContext>
Context.FailedExecution.| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultFailedExecutionContext.Builder |
| Modifier and Type | Method and Description |
|---|---|
static DefaultFailedExecutionContext.Builder |
builder() |
Throwable |
exception()
The exception associated with the failed execution.
|
Optional<SdkHttpRequest> |
httpRequest()
The latest version of the
SdkHttpRequest available when the execution failed. |
Optional<SdkHttpResponse> |
httpResponse()
The latest version of the
SdkHttpResponse 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. |
DefaultFailedExecutionContext.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcopypublic SdkRequest request()
Context.FailedExecutionSdkRequest available when the execution failed. This will never return null.request in interface Context.FailedExecutionpublic Optional<SdkHttpRequest> httpRequest()
Context.FailedExecutionSdkHttpRequest available when the execution failed. This may be a
SdkHttpFullRequest; if so, it can be accessed by casting the returned SdkHttpRequest.
If the execution failed before or during request marshalling, this will return Optional.empty().httpRequest in interface Context.FailedExecutionpublic Optional<SdkHttpResponse> httpResponse()
Context.FailedExecutionSdkHttpResponse available when the execution failed. This may be a
SdkHttpFullResponse; if so, it can be accessed by casting the returned SdkHttpResponse.
If the execution failed before or during transmission, this will return Optional.empty().httpResponse in interface Context.FailedExecutionpublic Optional<SdkResponse> response()
Context.FailedExecutionSdkResponse available when the execution failed. If the execution failed before or
during response unmarshalling, this will return Optional.empty().response in interface Context.FailedExecutionpublic Throwable exception()
Context.FailedExecutionexception in interface Context.FailedExecutionpublic DefaultFailedExecutionContext.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<DefaultFailedExecutionContext.Builder,DefaultFailedExecutionContext>public static DefaultFailedExecutionContext.Builder builder()
Copyright © 2026. All rights reserved.