@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ValidationException extends AmazonDetectiveException
The request parameters are invalid.
AmazonServiceException.ErrorType| Constructor and Description |
|---|
ValidationException(String message)
Constructs a new ValidationException with the specified error message.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getErrorCode()
The error code associated with the validation failure.
|
String |
getErrorCodeReason()
An explanation of why validation failed.
|
void |
setErrorCode(String errorCode)
The error code associated with the validation failure.
|
void |
setErrorCodeReason(String errorCodeReason)
An explanation of why validation failed.
|
ValidationException |
withErrorCode(ErrorCode errorCode)
The error code associated with the validation failure.
|
ValidationException |
withErrorCode(String errorCode)
The error code associated with the validation failure.
|
ValidationException |
withErrorCodeReason(String errorCodeReason)
An explanation of why validation failed.
|
getErrorMessage, getErrorType, getHttpHeaders, getMessage, getProxyHost, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorMessage, setErrorType, setHttpHeaders, setProxyHost, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCodeisRetryableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ValidationException(String message)
message - Describes the error encountered.public void setErrorCode(String errorCode)
The error code associated with the validation failure.
setErrorCode in class AmazonServiceExceptionerrorCode - The error code associated with the validation failure.ErrorCodepublic String getErrorCode()
The error code associated with the validation failure.
getErrorCode in class AmazonServiceExceptionErrorCodepublic ValidationException withErrorCode(String errorCode)
The error code associated with the validation failure.
errorCode - The error code associated with the validation failure.ErrorCodepublic ValidationException withErrorCode(ErrorCode errorCode)
The error code associated with the validation failure.
errorCode - The error code associated with the validation failure.ErrorCodepublic void setErrorCodeReason(String errorCodeReason)
An explanation of why validation failed.
errorCodeReason - An explanation of why validation failed.public String getErrorCodeReason()
An explanation of why validation failed.
public ValidationException withErrorCodeReason(String errorCodeReason)
An explanation of why validation failed.
errorCodeReason - An explanation of why validation failed.