Interface SdkException.Builder
- 
- All Superinterfaces:
- Buildable
 - All Known Subinterfaces:
- AbortedException.Builder,- ApiCallAttemptTimeoutException.Builder,- ApiCallTimeoutException.Builder,- Crc32MismatchException.Builder,- EndpointDiscoveryFailedException.Builder,- NonRetryableException.Builder,- RetryableException.Builder,- SdkClientException.Builder,- SdkServiceException.Builder
 - All Known Implementing Classes:
- AbortedException.BuilderImpl,- ApiCallAttemptTimeoutException.BuilderImpl,- ApiCallTimeoutException.BuilderImpl,- Crc32MismatchException.BuilderImpl,- EndpointDiscoveryFailedException.BuilderImpl,- NonRetryableException.BuilderImpl,- RetryableException.BuilderImpl,- SdkClientException.BuilderImpl,- SdkException.BuilderImpl,- SdkServiceException.BuilderImpl
 - Enclosing class:
- SdkException
 
 public static interface SdkException.Builder extends Buildable 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description SdkExceptionbuild()Creates a newSdkExceptionwith the specified properties.Throwablecause()The exception that caused this exception to occur.SdkException.Buildercause(Throwable cause)Specifies the exception that caused this exception to occur.Stringmessage()The details of this exception.SdkException.Buildermessage(String message)Specifies the details of this exception.default IntegernumAttempts()The number of times a request was attempted before this exception was throwndefault SdkException.BuildernumAttempts(Integer numAttempts)BooleanwritableStackTrace()Whether the stack trace in this exception can be written.SdkException.BuilderwritableStackTrace(Boolean writableStackTrace)Specifies whether the stack trace in this exception can be written.
 
- 
- 
- 
Method Detail- 
causeSdkException.Builder cause(Throwable cause) Specifies the exception that caused this exception to occur.- Parameters:
- cause- The exception that caused this exception to occur.
- Returns:
- This object for method chaining.
 
 - 
causeThrowable cause() The exception that caused this exception to occur.- Returns:
- The exception that caused this exception to occur.
 
 - 
messageSdkException.Builder message(String message) Specifies the details of this exception.- Parameters:
- message- The details of this exception.
- Returns:
- This method for object chaining
 
 - 
messageString message() The details of this exception.- Returns:
- Details of this exception.
 
 - 
numAttemptsdefault SdkException.Builder numAttempts(Integer numAttempts) - Parameters:
- numAttempts- The attempt count
- Returns:
- This method for object chaining
 
 - 
numAttemptsdefault Integer numAttempts() The number of times a request was attempted before this exception was thrown- Returns:
- the attempt count
 
 - 
writableStackTraceSdkException.Builder writableStackTrace(Boolean writableStackTrace) Specifies whether the stack trace in this exception can be written.- Parameters:
- writableStackTrace- Whether the stack trace can be written.
- Returns:
- This method for object chaining
 
 - 
writableStackTraceBoolean writableStackTrace() Whether the stack trace in this exception can be written.
 - 
buildSdkException build() Creates a newSdkExceptionwith the specified properties.- Specified by:
- buildin interface- Buildable
- Returns:
- The new SdkException.
 
 
- 
 
-