Class SdkException.BuilderImpl
- java.lang.Object
- 
- software.amazon.awssdk.core.exception.SdkException.BuilderImpl
 
- 
- All Implemented Interfaces:
- SdkException.Builder,- Buildable
 - Direct Known Subclasses:
- SdkClientException.BuilderImpl,- SdkServiceException.BuilderImpl
 - Enclosing class:
- SdkException
 
 protected static class SdkException.BuilderImpl extends Object implements SdkException.Builder 
- 
- 
Field SummaryFields Modifier and Type Field Description protected Throwablecauseprotected Stringmessageprotected IntegernumAttemptsprotected BooleanwritableStackTrace
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedBuilderImpl()protectedBuilderImpl(SdkException ex)
 - 
Method SummaryAll Methods Instance Methods Concrete 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.ThrowablegetCause()StringgetMessage()IntegergetNumAttempts()BooleangetWritableStackTrace()Stringmessage()The details of this exception.SdkException.Buildermessage(String message)Specifies the details of this exception.IntegernumAttempts()The number of times a request was attempted before this exception was thrownSdkException.BuildernumAttempts(Integer numAttempts)voidsetAttemptCount(Integer attemptCount)voidsetCause(Throwable cause)voidsetMessage(String message)voidsetWritableStackTrace(Boolean writableStackTrace)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.
 
- 
- 
- 
Constructor Detail- 
BuilderImplprotected BuilderImpl() 
 - 
BuilderImplprotected BuilderImpl(SdkException ex) 
 
- 
 - 
Method Detail- 
getCausepublic Throwable getCause() 
 - 
setCausepublic void setCause(Throwable cause) 
 - 
causepublic SdkException.Builder cause(Throwable cause) Description copied from interface:SdkException.BuilderSpecifies the exception that caused this exception to occur.- Specified by:
- causein interface- SdkException.Builder
- Parameters:
- cause- The exception that caused this exception to occur.
- Returns:
- This object for method chaining.
 
 - 
causepublic Throwable cause() Description copied from interface:SdkException.BuilderThe exception that caused this exception to occur.- Specified by:
- causein interface- SdkException.Builder
- Returns:
- The exception that caused this exception to occur.
 
 - 
getMessagepublic String getMessage() 
 - 
messagepublic SdkException.Builder message(String message) Description copied from interface:SdkException.BuilderSpecifies the details of this exception.- Specified by:
- messagein interface- SdkException.Builder
- Parameters:
- message- The details of this exception.
- Returns:
- This method for object chaining
 
 - 
setMessagepublic void setMessage(String message) 
 - 
messagepublic String message() Description copied from interface:SdkException.BuilderThe details of this exception.- Specified by:
- messagein interface- SdkException.Builder
- Returns:
- Details of this exception.
 
 - 
getNumAttemptspublic Integer getNumAttempts() 
 - 
setAttemptCountpublic void setAttemptCount(Integer attemptCount) 
 - 
numAttemptspublic SdkException.Builder numAttempts(Integer numAttempts) - Specified by:
- numAttemptsin interface- SdkException.Builder
- Parameters:
- numAttempts- The attempt count
- Returns:
- This method for object chaining
 
 - 
numAttemptspublic Integer numAttempts() Description copied from interface:SdkException.BuilderThe number of times a request was attempted before this exception was thrown- Specified by:
- numAttemptsin interface- SdkException.Builder
- Returns:
- the attempt count
 
 - 
writableStackTracepublic SdkException.Builder writableStackTrace(Boolean writableStackTrace) Description copied from interface:SdkException.BuilderSpecifies whether the stack trace in this exception can be written.- Specified by:
- writableStackTracein interface- SdkException.Builder
- Parameters:
- writableStackTrace- Whether the stack trace can be written.
- Returns:
- This method for object chaining
 
 - 
setWritableStackTracepublic void setWritableStackTrace(Boolean writableStackTrace) 
 - 
writableStackTracepublic Boolean writableStackTrace() Description copied from interface:SdkException.BuilderWhether the stack trace in this exception can be written.- Specified by:
- writableStackTracein interface- SdkException.Builder
 
 - 
getWritableStackTracepublic Boolean getWritableStackTrace() 
 - 
buildpublic SdkException build() Description copied from interface:SdkException.BuilderCreates a newSdkExceptionwith the specified properties.- Specified by:
- buildin interface- Buildable
- Specified by:
- buildin interface- SdkException.Builder
- Returns:
- The new SdkException.
 
 
- 
 
-