@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ValidationException extends AWSTaxSettingsException
The exception when the input doesn't pass validation for at least one of the input parameters.
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()
400
|
List<ValidationExceptionField> |
getFieldList()
400
|
void |
setErrorCode(String errorCode)
400
|
void |
setFieldList(Collection<ValidationExceptionField> fieldList)
400
|
ValidationException |
withErrorCode(String errorCode)
400
|
ValidationException |
withErrorCode(ValidationExceptionErrorCode errorCode)
400
|
ValidationException |
withFieldList(Collection<ValidationExceptionField> fieldList)
400
|
ValidationException |
withFieldList(ValidationExceptionField... fieldList)
400
|
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)
400
setErrorCode
in class AmazonServiceException
errorCode
- 400ValidationExceptionErrorCode
public String getErrorCode()
400
getErrorCode
in class AmazonServiceException
ValidationExceptionErrorCode
public ValidationException withErrorCode(String errorCode)
400
errorCode
- 400ValidationExceptionErrorCode
public ValidationException withErrorCode(ValidationExceptionErrorCode errorCode)
400
errorCode
- 400ValidationExceptionErrorCode
public List<ValidationExceptionField> getFieldList()
400
public void setFieldList(Collection<ValidationExceptionField> fieldList)
400
fieldList
- 400public ValidationException withFieldList(ValidationExceptionField... fieldList)
400
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
- 400public ValidationException withFieldList(Collection<ValidationExceptionField> fieldList)
400
fieldList
- 400