public class ValidationException extends AmazonServiceException
The input failed to meet the constraints specified by the AWS service.
AmazonServiceException.ErrorType
Constructor and Description |
---|
ValidationException(java.lang.String message)
Constructs a new ValidationException with the specified error message.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<ValidationExceptionField> |
getFieldList()
The field where the invalid entry was detected.
|
java.lang.String |
getReason()
A message with the reason for the validation exception error.
|
void |
setFieldList(java.util.Collection<ValidationExceptionField> fieldList)
The field where the invalid entry was detected.
|
void |
setReason(java.lang.String reason)
A message with the reason for the validation exception error.
|
getErrorCode, getErrorMessage, getErrorType, getMessage, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setRequestId, setServiceName, setStatusCode
isRetryable
public ValidationException(java.lang.String message)
message
- Describes the error encountered.public java.util.List<ValidationExceptionField> getFieldList()
The field where the invalid entry was detected.
The field where the invalid entry was detected.
public void setFieldList(java.util.Collection<ValidationExceptionField> fieldList)
The field where the invalid entry was detected.
fieldList
- The field where the invalid entry was detected.
public java.lang.String getReason()
A message with the reason for the validation exception error.
Constraints:
Allowed Values: UnknownOperation, Missing, CannotParse,
FieldValidationFailed, Other
A message with the reason for the validation exception error.
ValidationExceptionReason
public void setReason(java.lang.String reason)
A message with the reason for the validation exception error.
Constraints:
Allowed Values: UnknownOperation, Missing, CannotParse,
FieldValidationFailed, Other
reason
- A message with the reason for the validation exception error.
ValidationExceptionReason
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.