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.Builder
cause
in interface SdkException.Builder
cause
- The exception that caused this exception to occur.public Throwable cause()
SdkException.Builder
cause
in interface SdkException.Builder
public String getMessage()
public SdkException.Builder message(String message)
SdkException.Builder
message
in interface SdkException.Builder
message
- The details of this exception.public void setMessage(String message)
public String message()
SdkException.Builder
message
in interface SdkException.Builder
public SdkException.Builder writableStackTrace(Boolean writableStackTrace)
SdkException.Builder
writableStackTrace
in interface SdkException.Builder
writableStackTrace
- Whether the stack trace can be written.public void setWritableStackTrace(Boolean writableStackTrace)
public Boolean writableStackTrace()
SdkException.Builder
writableStackTrace
in interface SdkException.Builder
public Boolean getWritableStackTrace()
public SdkException build()
SdkException.Builder
SdkException
with the specified properties.build
in interface SdkException.Builder
build
in interface Buildable
SdkException
.Copyright © 2023. All rights reserved.