public class InvalidInputException extends AmazonServiceException
The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
AmazonServiceException.ErrorType
Constructor and Description |
---|
InvalidInputException(String message)
Constructs a new InvalidInputException with the specified error message.
|
Modifier and Type | Method and Description |
---|---|
Boolean |
getCanRetry()
You can immediately retry your request.
|
String |
getErrorCode()
Code that indicates the type of error that is generated.
|
Boolean |
isCanRetry()
You can immediately retry your request.
|
void |
setCanRetry(Boolean canRetry)
You can immediately retry your request.
|
void |
setErrorCode(InvalidInputErrorCode errorCode)
Code that indicates the type of error that is generated.
|
void |
setErrorCode(String errorCode)
Code that indicates the type of error that is generated.
|
InvalidInputException |
withCanRetry(Boolean canRetry)
You can immediately retry your request.
|
InvalidInputException |
withErrorCode(InvalidInputErrorCode errorCode)
Code that indicates the type of error that is generated.
|
InvalidInputException |
withErrorCode(String errorCode)
Code that indicates the type of error that is generated.
|
getErrorMessage, getErrorType, getMessage, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorMessage, setErrorType, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCode
isRetryable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public InvalidInputException(String message)
message
- Describes the error encountered.public void setErrorCode(String errorCode)
Code that indicates the type of error that is generated.
setErrorCode
in class AmazonServiceException
errorCode
- Code that indicates the type of error that is generated.InvalidInputErrorCode
public String getErrorCode()
Code that indicates the type of error that is generated.
getErrorCode
in class AmazonServiceException
InvalidInputErrorCode
public InvalidInputException withErrorCode(String errorCode)
Code that indicates the type of error that is generated.
errorCode
- Code that indicates the type of error that is generated.InvalidInputErrorCode
public void setErrorCode(InvalidInputErrorCode errorCode)
Code that indicates the type of error that is generated.
errorCode
- Code that indicates the type of error that is generated.InvalidInputErrorCode
public InvalidInputException withErrorCode(InvalidInputErrorCode errorCode)
Code that indicates the type of error that is generated.
errorCode
- Code that indicates the type of error that is generated.InvalidInputErrorCode
public void setCanRetry(Boolean canRetry)
You can immediately retry your request.
canRetry
- You can immediately retry your request.public Boolean getCanRetry()
You can immediately retry your request.
public InvalidInputException withCanRetry(Boolean canRetry)
You can immediately retry your request.
canRetry
- You can immediately retry your request.public Boolean isCanRetry()
You can immediately retry your request.
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.