@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class NotFoundException extends AWSServerlessApplicationRepositoryException
The resource (for example, an access policy statement) specified in the request doesn't exist.
AmazonServiceException.ErrorType| Constructor and Description |
|---|
NotFoundException(String message)
Constructs a new NotFoundException with the specified error message.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getErrorCode()
404
|
void |
setErrorCode(String errorCode)
404
|
NotFoundException |
withErrorCode(String errorCode)
404
|
getErrorMessage, getErrorType, getHttpHeaders, getMessage, getProxyHost, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorMessage, setErrorType, setHttpHeaders, setProxyHost, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCodeisRetryableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic NotFoundException(String message)
message - Describes the error encountered.public void setErrorCode(String errorCode)
404
setErrorCode in class AmazonServiceExceptionerrorCode - 404public String getErrorCode()
404
getErrorCode in class AmazonServiceExceptionpublic NotFoundException withErrorCode(String errorCode)
404
errorCode - 404