@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ValidationException extends AmazonDocDBElasticException
A structure defining a validation exception.
AmazonServiceException.ErrorType
Constructor and Description |
---|
ValidationException(String message)
Constructs a new ValidationException with the specified error message.
|
Modifier and Type | Method and Description |
---|---|
List<ValidationExceptionField> |
getFieldList()
A list of the fields in which the validation exception occurred.
|
String |
getReason()
The reason why the validation exception occurred (one of
unknownOperation , cannotParse ,
fieldValidationFailed , or other ). |
void |
setFieldList(Collection<ValidationExceptionField> fieldList)
A list of the fields in which the validation exception occurred.
|
void |
setReason(String reason)
The reason why the validation exception occurred (one of
unknownOperation , cannotParse ,
fieldValidationFailed , or other ). |
ValidationException |
withFieldList(Collection<ValidationExceptionField> fieldList)
A list of the fields in which the validation exception occurred.
|
ValidationException |
withFieldList(ValidationExceptionField... fieldList)
A list of the fields in which the validation exception occurred.
|
ValidationException |
withReason(String reason)
The reason why the validation exception occurred (one of
unknownOperation , cannotParse ,
fieldValidationFailed , or other ). |
ValidationException |
withReason(ValidationExceptionReason reason)
The reason why the validation exception occurred (one of
unknownOperation , cannotParse ,
fieldValidationFailed , or other ). |
getErrorCode, getErrorMessage, getErrorType, getHttpHeaders, getMessage, getProxyHost, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, 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 List<ValidationExceptionField> getFieldList()
A list of the fields in which the validation exception occurred.
public void setFieldList(Collection<ValidationExceptionField> fieldList)
A list of the fields in which the validation exception occurred.
fieldList
- A list of the fields in which the validation exception occurred.public ValidationException withFieldList(ValidationExceptionField... fieldList)
A list of the fields in which the validation exception occurred.
NOTE: This method appends the values to the existing list (if any). Use
setFieldList(java.util.Collection)
or withFieldList(java.util.Collection)
if you want to
override the existing values.
fieldList
- A list of the fields in which the validation exception occurred.public ValidationException withFieldList(Collection<ValidationExceptionField> fieldList)
A list of the fields in which the validation exception occurred.
fieldList
- A list of the fields in which the validation exception occurred.public void setReason(String reason)
The reason why the validation exception occurred (one of unknownOperation
, cannotParse
,
fieldValidationFailed
, or other
).
reason
- The reason why the validation exception occurred (one of unknownOperation
,
cannotParse
, fieldValidationFailed
, or other
).ValidationExceptionReason
public String getReason()
The reason why the validation exception occurred (one of unknownOperation
, cannotParse
,
fieldValidationFailed
, or other
).
unknownOperation
,
cannotParse
, fieldValidationFailed
, or other
).ValidationExceptionReason
public ValidationException withReason(String reason)
The reason why the validation exception occurred (one of unknownOperation
, cannotParse
,
fieldValidationFailed
, or other
).
reason
- The reason why the validation exception occurred (one of unknownOperation
,
cannotParse
, fieldValidationFailed
, or other
).ValidationExceptionReason
public ValidationException withReason(ValidationExceptionReason reason)
The reason why the validation exception occurred (one of unknownOperation
, cannotParse
,
fieldValidationFailed
, or other
).
reason
- The reason why the validation exception occurred (one of unknownOperation
,
cannotParse
, fieldValidationFailed
, or other
).ValidationExceptionReason