public class AuthenticationFailedException extends AmazonServiceException
An authentication error occurred.
AmazonServiceException.ErrorType
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
requestId
The identifier of the request that caused the exception.
|
private static long |
serialVersionUID |
Constructor and Description |
---|
AuthenticationFailedException(java.lang.String message)
Constructs a new AuthenticationFailedException with the specified error
message.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getRequestId()
The identifier of the request that caused the exception.
|
void |
setRequestId(java.lang.String requestId)
The identifier of the request that caused the exception.
|
AuthenticationFailedException |
withRequestId(java.lang.String requestId)
The identifier of the request that caused the exception.
|
getErrorCode, getErrorMessage, getErrorType, getMessage, getRawResponse, getRawResponseContent, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setRawResponse, setRawResponseContent, setServiceName, setStatusCode
isRetryable
private static final long serialVersionUID
private java.lang.String requestId
The identifier of the request that caused the exception.
public AuthenticationFailedException(java.lang.String message)
message
- Describes the error encountered.public void setRequestId(java.lang.String requestId)
The identifier of the request that caused the exception.
setRequestId
in class AmazonServiceException
requestId
- The identifier of the request that caused the exception.public java.lang.String getRequestId()
The identifier of the request that caused the exception.
getRequestId
in class AmazonServiceException
public AuthenticationFailedException withRequestId(java.lang.String requestId)
The identifier of the request that caused the exception.
requestId
- The identifier of the request that caused the exception.