public class InvalidRequestException extends AmazonServiceException
This exception occurs when there is something wrong with user input.
AmazonServiceException.ErrorType| Constructor and Description |
|---|
InvalidRequestException(String message)
Constructs a new InvalidRequestException with the specified error
message.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getErrorCode()
The error code associated with the exception.
|
void |
setErrorCode(String errorCode)
The error code associated with the exception.
|
InvalidRequestException |
withErrorCode(String errorCode)
The error code associated with the exception.
|
getErrorMessage, getErrorType, getHttpHeaders, getMessage, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorMessage, setErrorType, setHttpHeaders, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCodeisRetryableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic InvalidRequestException(String message)
message - Describes the error encountered.public void setErrorCode(String errorCode)
The error code associated with the exception.
setErrorCode in class AmazonServiceExceptionerrorCode - The error code associated with the exception.public String getErrorCode()
The error code associated with the exception.
getErrorCode in class AmazonServiceExceptionpublic InvalidRequestException withErrorCode(String errorCode)
The error code associated with the exception.
errorCode - The error code associated with the exception.Copyright © 2016. All rights reserved.