protected static class SdkException.BuilderImpl extends Object implements SdkException.Builder
| Modifier and Type | Field and Description |
|---|---|
protected Throwable |
cause |
protected String |
message |
protected Boolean |
writableStackTrace |
| Modifier | Constructor and Description |
|---|---|
protected |
BuilderImpl() |
protected |
BuilderImpl(SdkException ex) |
| Modifier and Type | Method and Description |
|---|---|
SdkException |
build()
Creates a new
SdkException 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.
|
protected Throwable cause
protected String message
protected Boolean writableStackTrace
protected BuilderImpl()
protected BuilderImpl(SdkException ex)
public Throwable getCause()
public void setCause(Throwable cause)
public SdkException.Builder cause(Throwable cause)
SdkException.Buildercause in interface SdkException.Buildercause - The exception that caused this exception to occur.public Throwable cause()
SdkException.Buildercause in interface SdkException.Builderpublic String getMessage()
public SdkException.Builder message(String message)
SdkException.Buildermessage in interface SdkException.Buildermessage - The details of this exception.public void setMessage(String message)
public String message()
SdkException.Buildermessage in interface SdkException.Builderpublic SdkException.Builder writableStackTrace(Boolean writableStackTrace)
SdkException.BuilderwritableStackTrace in interface SdkException.BuilderwritableStackTrace - Whether the stack trace can be written.public void setWritableStackTrace(Boolean writableStackTrace)
public Boolean writableStackTrace()
SdkException.BuilderwritableStackTrace in interface SdkException.Builderpublic Boolean getWritableStackTrace()
public SdkException build()
SdkException.BuilderSdkException with the specified properties.build in interface SdkException.Builderbuild in interface BuildableSdkException.Copyright © 2023. All rights reserved.