@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ValidationException extends AWSBackupGatewayException
The operation did not succeed because a validation error occurred.
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()
A description of what caused the validation error.
|
void |
setErrorCode(String errorCode)
A description of what caused the validation error.
|
ValidationException |
withErrorCode(String errorCode)
A description of what caused the validation error.
|
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)
A description of what caused the validation error.
setErrorCode in class AmazonServiceExceptionerrorCode - A description of what caused the validation error.public String getErrorCode()
A description of what caused the validation error.
getErrorCode in class AmazonServiceExceptionpublic ValidationException withErrorCode(String errorCode)
A description of what caused the validation error.
errorCode - A description of what caused the validation error.