@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AccessDeniedException extends AmazonNimbleStudioException
You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys.
AmazonServiceException.ErrorType
Constructor and Description |
---|
AccessDeniedException(String message)
Constructs a new AccessDeniedException with the specified error message.
|
Modifier and Type | Method and Description |
---|---|
AccessDeniedException |
addContextEntry(String key,
String value)
Add a single Context entry
|
AccessDeniedException |
clearContextEntries()
Removes all the entries added into Context.
|
String |
getCode()
A more specific error code.
|
Map<String,String> |
getContext()
The exception context.
|
void |
setCode(String code)
A more specific error code.
|
void |
setContext(Map<String,String> context)
The exception context.
|
AccessDeniedException |
withCode(String code)
A more specific error code.
|
AccessDeniedException |
withContext(Map<String,String> context)
The exception context.
|
getErrorCode, getErrorMessage, getErrorType, getHttpHeaders, getMessage, getProxyHost, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setHttpHeaders, setProxyHost, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCode
isRetryable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public AccessDeniedException(String message)
message
- Describes the error encountered.public void setCode(String code)
A more specific error code.
code
- A more specific error code.public String getCode()
A more specific error code.
public AccessDeniedException withCode(String code)
A more specific error code.
code
- A more specific error code.public Map<String,String> getContext()
The exception context.
public void setContext(Map<String,String> context)
The exception context.
context
- The exception context.public AccessDeniedException withContext(Map<String,String> context)
The exception context.
context
- The exception context.public AccessDeniedException addContextEntry(String key, String value)
public AccessDeniedException clearContextEntries()