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, writableStackTrace
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BuilderImpl()
protected
BuilderImpl(NonRetryableException ex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NonRetryableException
build()
Creates a newSdkException
with the specified properties.Throwable
cause()
The exception that caused this exception to occur.NonRetryableException.Builder
cause(Throwable cause)
Specifies the exception that caused this exception to occur.String
message()
The details of this exception.NonRetryableException.Builder
message(String message)
Specifies the details of this exception.NonRetryableException.Builder
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, getWritableStackTrace, setCause, setMessage, setWritableStackTrace, writableStackTrace
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.core.exception.SdkException.Builder
writableStackTrace
-
-
-
-
Constructor Detail
-
BuilderImpl
protected BuilderImpl()
-
BuilderImpl
protected BuilderImpl(NonRetryableException ex)
-
-
Method Detail
-
message
public NonRetryableException.Builder message(String message)
Description copied from interface:SdkException.Builder
Specifies the details of this exception.- Specified by:
message
in interfaceNonRetryableException.Builder
- Specified by:
message
in interfaceSdkClientException.Builder
- Specified by:
message
in interfaceSdkException.Builder
- Overrides:
message
in classSdkClientException.BuilderImpl
- Parameters:
message
- The details of this exception.- Returns:
- This method for object chaining
-
message
public String message()
Description copied from interface:SdkException.Builder
The details of this exception.- Specified by:
message
in interfaceSdkException.Builder
- Overrides:
message
in classSdkException.BuilderImpl
- Returns:
- Details of this exception.
-
cause
public Throwable cause()
Description copied from interface:SdkException.Builder
The exception that caused this exception to occur.- Specified by:
cause
in interfaceSdkException.Builder
- Overrides:
cause
in classSdkException.BuilderImpl
- Returns:
- The exception that caused this exception to occur.
-
cause
public NonRetryableException.Builder cause(Throwable cause)
Description copied from interface:SdkException.Builder
Specifies the exception that caused this exception to occur.- Specified by:
cause
in interfaceNonRetryableException.Builder
- Specified by:
cause
in interfaceSdkClientException.Builder
- Specified by:
cause
in interfaceSdkException.Builder
- Overrides:
cause
in classSdkClientException.BuilderImpl
- Parameters:
cause
- The exception that caused this exception to occur.- Returns:
- This object for method chaining.
-
writableStackTrace
public NonRetryableException.Builder writableStackTrace(Boolean writableStackTrace)
Description copied from interface:SdkException.Builder
Specifies whether the stack trace in this exception can be written.- Specified by:
writableStackTrace
in interfaceNonRetryableException.Builder
- Specified by:
writableStackTrace
in interfaceSdkClientException.Builder
- Specified by:
writableStackTrace
in interfaceSdkException.Builder
- Overrides:
writableStackTrace
in classSdkClientException.BuilderImpl
- Parameters:
writableStackTrace
- Whether the stack trace can be written.- Returns:
- This method for object chaining
-
build
public NonRetryableException build()
Description copied from interface:SdkException.Builder
Creates a newSdkException
with the specified properties.- Specified by:
build
in interfaceBuildable
- Specified by:
build
in interfaceNonRetryableException.Builder
- Specified by:
build
in interfaceSdkClientException.Builder
- Specified by:
build
in interfaceSdkException.Builder
- Overrides:
build
in classSdkClientException.BuilderImpl
- Returns:
- The new
SdkException
.
-
-