public class NoSuchEntityException extends AmazonServiceException
The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
AmazonServiceException.ErrorType| Constructor and Description |
|---|
NoSuchEntityException(String message)
Constructs a new NoSuchEntityException with the specified error message.
|
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getCanRetry()
You can immediately retry your request.
|
String |
getErrorCode()
Code that indicates the type of error that is generated.
|
Boolean |
isCanRetry()
You can immediately retry your request.
|
void |
setCanRetry(Boolean canRetry)
You can immediately retry your request.
|
void |
setErrorCode(NoSuchEntityErrorCode errorCode)
Code that indicates the type of error that is generated.
|
void |
setErrorCode(String errorCode)
Code that indicates the type of error that is generated.
|
NoSuchEntityException |
withCanRetry(Boolean canRetry)
You can immediately retry your request.
|
NoSuchEntityException |
withErrorCode(NoSuchEntityErrorCode errorCode)
Code that indicates the type of error that is generated.
|
NoSuchEntityException |
withErrorCode(String errorCode)
Code that indicates the type of error that is generated.
|
getErrorMessage, getErrorType, getMessage, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorMessage, setErrorType, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCodeisRetryableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic NoSuchEntityException(String message)
message - Describes the error encountered.public void setErrorCode(String errorCode)
Code that indicates the type of error that is generated.
setErrorCode in class AmazonServiceExceptionerrorCode - Code that indicates the type of error that is generated.NoSuchEntityErrorCodepublic String getErrorCode()
Code that indicates the type of error that is generated.
getErrorCode in class AmazonServiceExceptionNoSuchEntityErrorCodepublic NoSuchEntityException withErrorCode(String errorCode)
Code that indicates the type of error that is generated.
errorCode - Code that indicates the type of error that is generated.NoSuchEntityErrorCodepublic void setErrorCode(NoSuchEntityErrorCode errorCode)
Code that indicates the type of error that is generated.
errorCode - Code that indicates the type of error that is generated.NoSuchEntityErrorCodepublic NoSuchEntityException withErrorCode(NoSuchEntityErrorCode errorCode)
Code that indicates the type of error that is generated.
errorCode - Code that indicates the type of error that is generated.NoSuchEntityErrorCodepublic void setCanRetry(Boolean canRetry)
You can immediately retry your request.
canRetry - You can immediately retry your request.public Boolean getCanRetry()
You can immediately retry your request.
public NoSuchEntityException withCanRetry(Boolean canRetry)
You can immediately retry your request.
canRetry - You can immediately retry your request.public Boolean isCanRetry()
You can immediately retry your request.
Copyright © 2016. All rights reserved.