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
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BuilderImpl()
protected
BuilderImpl(SdkException ex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SdkException
build()
Creates a newSdkException
with the specified properties.Throwable
cause()
The exception that caused this exception to occur.SdkException.Builder
cause(Throwable cause)
Specifies the exception that caused this exception to occur.Throwable
getCause()
String
getMessage()
Boolean
getWritableStackTrace()
String
message()
The details of this exception.SdkException.Builder
message(String message)
Specifies the details of this exception.void
setCause(Throwable cause)
void
setMessage(String message)
void
setWritableStackTrace(Boolean writableStackTrace)
Boolean
writableStackTrace()
Whether the stack trace in this exception can be written.SdkException.Builder
writableStackTrace(Boolean writableStackTrace)
Specifies whether the stack trace in this exception can be written.
-
-
-
Constructor Detail
-
BuilderImpl
protected BuilderImpl()
-
BuilderImpl
protected BuilderImpl(SdkException ex)
-
-
Method Detail
-
getCause
public Throwable getCause()
-
setCause
public void setCause(Throwable cause)
-
cause
public SdkException.Builder cause(Throwable cause)
Description copied from interface:SdkException.Builder
Specifies the exception that caused this exception to occur.- Specified by:
cause
in interfaceSdkException.Builder
- Parameters:
cause
- The exception that caused this exception to occur.- Returns:
- This object for method chaining.
-
cause
public Throwable cause()
Description copied from interface:SdkException.Builder
The exception that caused this exception to occur.- Specified by:
cause
in interfaceSdkException.Builder
- Returns:
- The exception that caused this exception to occur.
-
getMessage
public String getMessage()
-
message
public SdkException.Builder message(String message)
Description copied from interface:SdkException.Builder
Specifies the details of this exception.- Specified by:
message
in interfaceSdkException.Builder
- Parameters:
message
- The details of this exception.- Returns:
- This method for object chaining
-
setMessage
public void setMessage(String message)
-
message
public String message()
Description copied from interface:SdkException.Builder
The details of this exception.- Specified by:
message
in interfaceSdkException.Builder
- Returns:
- Details of this exception.
-
writableStackTrace
public SdkException.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 interfaceSdkException.Builder
- Parameters:
writableStackTrace
- Whether the stack trace can be written.- Returns:
- This method for object chaining
-
setWritableStackTrace
public void setWritableStackTrace(Boolean writableStackTrace)
-
writableStackTrace
public Boolean writableStackTrace()
Description copied from interface:SdkException.Builder
Whether the stack trace in this exception can be written.- Specified by:
writableStackTrace
in interfaceSdkException.Builder
-
getWritableStackTrace
public Boolean getWritableStackTrace()
-
build
public SdkException build()
Description copied from interface:SdkException.Builder
Creates a newSdkException
with the specified properties.- Specified by:
build
in interfaceBuildable
- Specified by:
build
in interfaceSdkException.Builder
- Returns:
- The new
SdkException
.
-
-