protected static class SdkServiceException.BuilderImpl extends SdkException.BuilderImpl implements SdkServiceException.Builder
| Modifier and Type | Field and Description |
|---|---|
protected String |
extendedRequestId |
protected String |
requestId |
protected int |
statusCode |
cause, message, writableStackTrace| Modifier | Constructor and Description |
|---|---|
protected |
BuilderImpl() |
protected |
BuilderImpl(SdkServiceException ex) |
| Modifier and Type | Method and Description |
|---|---|
SdkServiceException |
build()
Creates a new
SdkException with the specified properties. |
SdkServiceException.Builder |
cause(Throwable cause)
Specifies the exception that caused this exception to occur.
|
String |
extendedRequestId()
The extendedRequestId returned by the called service.
|
SdkServiceException.Builder |
extendedRequestId(String extendedRequestId)
Specifies the extendedRequestId returned by the called service.
|
String |
getExtendedRequestId() |
String |
getRequestId() |
int |
getStatusCode() |
SdkServiceException.Builder |
message(String message)
Specifies the details of this exception.
|
String |
requestId()
The requestId returned by the called service.
|
SdkServiceException.Builder |
requestId(String requestId)
Specifies the requestId returned by the called service.
|
List<SdkField<?>> |
sdkFields() |
void |
setExtendedRequestId(String extendedRequestId) |
void |
setRequestId(String requestId) |
void |
setStatusCode(int statusCode) |
int |
statusCode()
The status code returned by the service.
|
SdkServiceException.Builder |
statusCode(int statusCode)
Specifies the status code returned by the service.
|
SdkServiceException.Builder |
writableStackTrace(Boolean writableStackTrace)
Specifies whether the stack trace in this exception can be written.
|
cause, getCause, getMessage, getWritableStackTrace, message, setCause, setMessage, setWritableStackTrace, writableStackTraceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcause, message, writableStackTraceequalsBySdkFieldsprotected String requestId
protected String extendedRequestId
protected int statusCode
protected BuilderImpl()
protected BuilderImpl(SdkServiceException ex)
public SdkServiceException.Builder message(String message)
SdkException.Buildermessage in interface SdkException.Buildermessage in interface SdkServiceException.Buildermessage in class SdkException.BuilderImplmessage - The details of this exception.public SdkServiceException.Builder cause(Throwable cause)
SdkException.Buildercause in interface SdkException.Buildercause in interface SdkServiceException.Buildercause in class SdkException.BuilderImplcause - The exception that caused this exception to occur.public SdkServiceException.Builder writableStackTrace(Boolean writableStackTrace)
SdkException.BuilderwritableStackTrace in interface SdkException.BuilderwritableStackTrace in interface SdkServiceException.BuilderwritableStackTrace in class SdkException.BuilderImplwritableStackTrace - Whether the stack trace can be written.public SdkServiceException.Builder requestId(String requestId)
SdkServiceException.BuilderrequestId in interface SdkServiceException.BuilderrequestId - A string that identifies the request made to a service.public SdkServiceException.Builder extendedRequestId(String extendedRequestId)
SdkServiceException.BuilderextendedRequestId in interface SdkServiceException.BuilderextendedRequestId - A string that identifies the request made to a service.public String requestId()
SdkServiceException.BuilderrequestId in interface SdkServiceException.Builderpublic String getRequestId()
public void setRequestId(String requestId)
public String extendedRequestId()
SdkServiceException.BuilderextendedRequestId in interface SdkServiceException.Builderpublic String getExtendedRequestId()
public void setExtendedRequestId(String extendedRequestId)
public SdkServiceException.Builder statusCode(int statusCode)
SdkServiceException.BuilderstatusCode in interface SdkServiceException.BuilderstatusCode - an int containing the status code returned by the service.public int getStatusCode()
public void setStatusCode(int statusCode)
public int statusCode()
SdkServiceException.BuilderstatusCode in interface SdkServiceException.Builderpublic SdkServiceException build()
SdkException.BuilderSdkException with the specified properties.build in interface SdkException.Builderbuild in interface SdkServiceException.Builderbuild in interface Buildablebuild in class SdkException.BuilderImplSdkException.Copyright © 2023. All rights reserved.