@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AccessDeniedException extends AWSDeadlineException
You don't have permission to perform the action.
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.
|
Map<String,String> |
getContext()
Information about the resources in use when the exception was thrown.
|
void |
setContext(Map<String,String> context)
Information about the resources in use when the exception was thrown.
|
AccessDeniedException |
withContext(Map<String,String> context)
Information about the resources in use when the exception was thrown.
|
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 Map<String,String> getContext()
Information about the resources in use when the exception was thrown.
public void setContext(Map<String,String> context)
Information about the resources in use when the exception was thrown.
context
- Information about the resources in use when the exception was thrown.public AccessDeniedException withContext(Map<String,String> context)
Information about the resources in use when the exception was thrown.
context
- Information about the resources in use when the exception was thrown.public AccessDeniedException addContextEntry(String key, String value)
public AccessDeniedException clearContextEntries()