@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, setStatusCode
isRetryable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ValidationException(String message)
message
- Describes the error encountered.public void setErrorCode(String errorCode)
The error code associated with the validation failure.
setErrorCode
in class AmazonServiceException
errorCode
- The error code associated with the validation failure.ErrorCode
public String getErrorCode()
The error code associated with the validation failure.
getErrorCode
in class AmazonServiceException
ErrorCode
public ValidationException withErrorCode(String errorCode)
The error code associated with the validation failure.
errorCode
- The error code associated with the validation failure.ErrorCode
public ValidationException withErrorCode(ErrorCode errorCode)
The error code associated with the validation failure.
errorCode
- The error code associated with the validation failure.ErrorCode
public 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.