@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ValidationException extends AWSmgnException
Validate exception.
AmazonServiceException.ErrorType
Constructor and Description |
---|
ValidationException(String message)
Constructs a new ValidationException with the specified error message.
|
Modifier and Type | Method and Description |
---|---|
String |
getCode() |
List<ValidationExceptionField> |
getFieldList()
Validate exception field list.
|
String |
getReason()
Validate exception reason.
|
void |
setCode(String code) |
void |
setFieldList(Collection<ValidationExceptionField> fieldList)
Validate exception field list.
|
void |
setReason(String reason)
Validate exception reason.
|
ValidationException |
withCode(String code) |
ValidationException |
withFieldList(Collection<ValidationExceptionField> fieldList)
Validate exception field list.
|
ValidationException |
withFieldList(ValidationExceptionField... fieldList)
Validate exception field list.
|
ValidationException |
withReason(String reason)
Validate exception reason.
|
ValidationException |
withReason(ValidationExceptionReason reason)
Validate exception reason.
|
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 void setCode(String code)
code
- public String getCode()
public ValidationException withCode(String code)
code
- public List<ValidationExceptionField> getFieldList()
Validate exception field list.
public void setFieldList(Collection<ValidationExceptionField> fieldList)
Validate exception field list.
fieldList
- Validate exception field list.public ValidationException withFieldList(ValidationExceptionField... fieldList)
Validate exception field list.
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
- Validate exception field list.public ValidationException withFieldList(Collection<ValidationExceptionField> fieldList)
Validate exception field list.
fieldList
- Validate exception field list.public void setReason(String reason)
Validate exception reason.
reason
- Validate exception reason.ValidationExceptionReason
public String getReason()
Validate exception reason.
ValidationExceptionReason
public ValidationException withReason(String reason)
Validate exception reason.
reason
- Validate exception reason.ValidationExceptionReason
public ValidationException withReason(ValidationExceptionReason reason)
Validate exception reason.
reason
- Validate exception reason.ValidationExceptionReason