protected static class SdkException.BuilderImpl extends Object implements SdkException.Builder
Modifier and Type | Field and Description |
---|---|
protected Throwable |
cause |
protected String |
message |
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() |
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) |
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 build()
SdkException.Builder
SdkException
with the specified properties.build
in interface SdkException.Builder
SdkException
.Copyright © 2018. All rights reserved.