Class NonRetryableException.BuilderImpl
java.lang.Object
software.amazon.awssdk.core.exception.SdkException.BuilderImpl
software.amazon.awssdk.core.exception.SdkClientException.BuilderImpl
software.amazon.awssdk.core.exception.NonRetryableException.BuilderImpl
- All Implemented Interfaces:
NonRetryableException.Builder,SdkClientException.Builder,SdkException.Builder,Buildable
- Enclosing class:
- NonRetryableException
protected static final class NonRetryableException.BuilderImpl
extends SdkClientException.BuilderImpl
implements NonRetryableException.Builder
-
Field Summary
Fields inherited from class software.amazon.awssdk.core.exception.SdkException.BuilderImpl
cause, message, numAttempts, writableStackTrace -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotected -
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.message()The details of this exception.Specifies the details of this exception.numAttempts(Integer numAttempts) writableStackTrace(Boolean writableStackTrace) Specifies whether the stack trace in this exception can be written.Methods inherited from class software.amazon.awssdk.core.exception.SdkException.BuilderImpl
getCause, getMessage, getNumAttempts, getWritableStackTrace, numAttempts, setAttemptCount, setCause, setMessage, setWritableStackTrace, writableStackTraceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.awssdk.core.exception.SdkException.Builder
numAttempts, writableStackTrace
-
Constructor Details
-
BuilderImpl
protected BuilderImpl() -
BuilderImpl
-
-
Method Details
-
message
Description copied from interface:SdkException.BuilderSpecifies the details of this exception.- Specified by:
messagein interfaceNonRetryableException.Builder- Specified by:
messagein interfaceSdkClientException.Builder- Specified by:
messagein interfaceSdkException.Builder- Overrides:
messagein classSdkClientException.BuilderImpl- Parameters:
message- The details of this exception.- Returns:
- This method for object chaining
-
message
Description copied from interface:SdkException.BuilderThe details of this exception.- Specified by:
messagein interfaceSdkException.Builder- Overrides:
messagein classSdkException.BuilderImpl- Returns:
- Details of this exception.
-
cause
Description copied from interface:SdkException.BuilderThe exception that caused this exception to occur.- Specified by:
causein interfaceSdkException.Builder- Overrides:
causein classSdkException.BuilderImpl- Returns:
- The exception that caused this exception to occur.
-
cause
Description copied from interface:SdkException.BuilderSpecifies the exception that caused this exception to occur.- Specified by:
causein interfaceNonRetryableException.Builder- Specified by:
causein interfaceSdkClientException.Builder- Specified by:
causein interfaceSdkException.Builder- Overrides:
causein classSdkClientException.BuilderImpl- Parameters:
cause- The exception that caused this exception to occur.- Returns:
- This object for method chaining.
-
writableStackTrace
Description copied from interface:SdkException.BuilderSpecifies whether the stack trace in this exception can be written.- Specified by:
writableStackTracein interfaceNonRetryableException.Builder- Specified by:
writableStackTracein interfaceSdkClientException.Builder- Specified by:
writableStackTracein interfaceSdkException.Builder- Overrides:
writableStackTracein classSdkClientException.BuilderImpl- Parameters:
writableStackTrace- Whether the stack trace can be written.- Returns:
- This method for object chaining
-
numAttempts
- Specified by:
numAttemptsin interfaceNonRetryableException.Builder- Specified by:
numAttemptsin interfaceSdkClientException.Builder- Specified by:
numAttemptsin interfaceSdkException.Builder- Overrides:
numAttemptsin classSdkClientException.BuilderImpl- Parameters:
numAttempts- The attempt count- Returns:
- This method for object chaining
-
build
Description copied from interface:SdkException.BuilderCreates a newSdkExceptionwith the specified properties.- Specified by:
buildin interfaceBuildable- Specified by:
buildin interfaceNonRetryableException.Builder- Specified by:
buildin interfaceSdkClientException.Builder- Specified by:
buildin interfaceSdkException.Builder- Overrides:
buildin classSdkClientException.BuilderImpl- Returns:
- The new
SdkException.
-