Interface SdkClientException.Builder
-
- All Superinterfaces:
Buildable,SdkException.Builder
- All Known Subinterfaces:
AbortedException.Builder,ApiCallAttemptTimeoutException.Builder,ApiCallTimeoutException.Builder,Crc32MismatchException.Builder,EndpointDiscoveryFailedException.Builder,NonRetryableException.Builder,RetryableException.Builder
- All Known Implementing Classes:
AbortedException.BuilderImpl,ApiCallAttemptTimeoutException.BuilderImpl,ApiCallTimeoutException.BuilderImpl,Crc32MismatchException.BuilderImpl,EndpointDiscoveryFailedException.BuilderImpl,NonRetryableException.BuilderImpl,RetryableException.BuilderImpl,SdkClientException.BuilderImpl
- Enclosing class:
- SdkClientException
public static interface SdkClientException.Builder extends SdkException.Builder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SdkClientExceptionbuild()Creates a newSdkExceptionwith the specified properties.SdkClientException.Buildercause(Throwable cause)Specifies the exception that caused this exception to occur.SdkClientException.Buildermessage(String message)Specifies the details of this exception.SdkClientException.BuildernumAttempts(Integer numAttempts)SdkClientException.BuilderwritableStackTrace(Boolean writableStackTrace)Specifies whether the stack trace in this exception can be written.-
Methods inherited from interface software.amazon.awssdk.core.exception.SdkException.Builder
cause, message, numAttempts, writableStackTrace
-
-
-
-
Method Detail
-
message
SdkClientException.Builder message(String message)
Description copied from interface:SdkException.BuilderSpecifies the details of this exception.- Specified by:
messagein interfaceSdkException.Builder- Parameters:
message- The details of this exception.- Returns:
- This method for object chaining
-
cause
SdkClientException.Builder cause(Throwable cause)
Description copied from interface:SdkException.BuilderSpecifies the exception that caused this exception to occur.- Specified by:
causein interfaceSdkException.Builder- Parameters:
cause- The exception that caused this exception to occur.- Returns:
- This object for method chaining.
-
writableStackTrace
SdkClientException.Builder writableStackTrace(Boolean writableStackTrace)
Description copied from interface:SdkException.BuilderSpecifies whether the stack trace in this exception can be written.- Specified by:
writableStackTracein interfaceSdkException.Builder- Parameters:
writableStackTrace- Whether the stack trace can be written.- Returns:
- This method for object chaining
-
build
SdkClientException build()
Description copied from interface:SdkException.BuilderCreates a newSdkExceptionwith the specified properties.- Specified by:
buildin interfaceBuildable- Specified by:
buildin interfaceSdkException.Builder- Returns:
- The new
SdkException.
-
numAttempts
SdkClientException.Builder numAttempts(Integer numAttempts)
- Specified by:
numAttemptsin interfaceSdkException.Builder- Parameters:
numAttempts- The attempt count- Returns:
- This method for object chaining
-
-