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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates a newSdkExceptionwith the specified properties.cause()The exception that caused this exception to occur.Specifies the exception that caused this exception to occur.getCause()message()The details of this exception.Specifies the details of this exception.The number of times a request was attempted before this exception was thrownnumAttempts(Integer numAttempts) voidsetAttemptCount(Integer attemptCount) voidvoidsetMessage(String message) voidsetWritableStackTrace(Boolean writableStackTrace) Whether the stack trace in this exception can be written.writableStackTrace(Boolean writableStackTrace) Specifies whether the stack trace in this exception can be written.
-
Field Details
-
cause
-
message
-
numAttempts
-
writableStackTrace
-
-
Constructor Details
-
BuilderImpl
protected BuilderImpl() -
BuilderImpl
-
-
Method Details
-
getCause
-
setCause
-
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.
-
cause
Description copied from interface:SdkException.BuilderThe exception that caused this exception to occur.- Specified by:
causein interfaceSdkException.Builder- Returns:
- The exception that caused this exception to occur.
-
getMessage
-
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
-
setMessage
-
message
Description copied from interface:SdkException.BuilderThe details of this exception.- Specified by:
messagein interfaceSdkException.Builder- Returns:
- Details of this exception.
-
getNumAttempts
-
setAttemptCount
-
numAttempts
- Specified by:
numAttemptsin interfaceSdkException.Builder- Parameters:
numAttempts- The attempt count- Returns:
- This method for object chaining
-
numAttempts
Description copied from interface:SdkException.BuilderThe number of times a request was attempted before this exception was thrown- Specified by:
numAttemptsin interfaceSdkException.Builder- Returns:
- the attempt count
-
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
-
setWritableStackTrace
-
writableStackTrace
Description copied from interface:SdkException.BuilderWhether the stack trace in this exception can be written.- Specified by:
writableStackTracein interfaceSdkException.Builder
-
getWritableStackTrace
-
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.
-