@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ForbiddenException extends AWSServerlessApplicationRepositoryException
The client is not authenticated.
AmazonServiceException.ErrorType| Constructor and Description | 
|---|
ForbiddenException(String message)
Constructs a new ForbiddenException with the specified error message. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getErrorCode()
 403 
 | 
void | 
setErrorCode(String errorCode)
 403 
 | 
ForbiddenException | 
withErrorCode(String errorCode)
 403 
 | 
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 ForbiddenException(String message)
message - Describes the error encountered.public void setErrorCode(String errorCode)
403
setErrorCode in class AmazonServiceExceptionerrorCode - 403public String getErrorCode()
403
getErrorCode in class AmazonServiceExceptionpublic ForbiddenException withErrorCode(String errorCode)
403
errorCode - 403