public class InvalidRequestException extends AmazonServiceException
This exception occurs when there is something wrong with user input.
AmazonServiceException.ErrorType
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
errorCode
The error code associated with the exception.
|
private static long |
serialVersionUID |
Constructor and Description |
---|
InvalidRequestException(java.lang.String message)
Constructs a new InvalidRequestException with the specified error
message.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorCode()
The error code associated with the exception.
|
void |
setErrorCode(java.lang.String errorCode)
The error code associated with the exception.
|
InvalidRequestException |
withErrorCode(java.lang.String errorCode)
The error code associated with the exception.
|
getErrorMessage, getErrorType, getMessage, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorMessage, setErrorType, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCode
isRetryable
private static final long serialVersionUID
private java.lang.String errorCode
The error code associated with the exception.
public InvalidRequestException(java.lang.String message)
message
- Describes the error encountered.public void setErrorCode(java.lang.String errorCode)
The error code associated with the exception.
setErrorCode
in class AmazonServiceException
errorCode
- The error code associated with the exception.public java.lang.String getErrorCode()
The error code associated with the exception.
getErrorCode
in class AmazonServiceException
public InvalidRequestException withErrorCode(java.lang.String errorCode)
The error code associated with the exception.
errorCode
- The error code associated with the exception.