@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ValidationException extends AmazonCodeGuruSecurityException
The input fails to satisfy the specified constraints.
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 ()
The identifier for the error.
|
List<ValidationExceptionField> |
getFieldList ()
The field that caused the error, if applicable.
|
String |
getReason ()
The reason the request failed validation.
|
void |
setErrorCode (String errorCode)
The identifier for the error.
|
void |
setFieldList (Collection<ValidationExceptionField> fieldList)
The field that caused the error, if applicable.
|
void |
setReason (String reason)
The reason the request failed validation.
|
ValidationException |
withErrorCode (String errorCode)
The identifier for the error.
|
ValidationException |
withFieldList (Collection<ValidationExceptionField> fieldList)
The field that caused the error, if applicable.
|
ValidationException |
withFieldList (ValidationExceptionField... fieldList)
The field that caused the error, if applicable.
|
ValidationException |
withReason (String reason)
The reason the request failed validation.
|
ValidationException |
withReason (ValidationExceptionReason reason)
The reason the request failed validation.
|
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)
The identifier for the error.
setErrorCode in class AmazonServiceException errorCode - The identifier for the error.public String getErrorCode()
The identifier for the error.
getErrorCode in class AmazonServiceException public ValidationException withErrorCode(String errorCode)
The identifier for the error.
errorCode - The identifier for the error.public List<ValidationExceptionField> getFieldList()
The field that caused the error, if applicable.
public void setFieldList(Collection<ValidationExceptionField> fieldList)
The field that caused the error, if applicable.
fieldList - The field that caused the error, if applicable.public ValidationException withFieldList(ValidationExceptionField... fieldList)
The field that caused the error, if applicable.
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 - The field that caused the error, if applicable.public ValidationException withFieldList(Collection<ValidationExceptionField> fieldList)
The field that caused the error, if applicable.
fieldList - The field that caused the error, if applicable.public void setReason(String reason)
The reason the request failed validation.
reason - The reason the request failed validation.ValidationExceptionReason public String getReason()
The reason the request failed validation.
ValidationExceptionReason public ValidationException withReason(String reason)
The reason the request failed validation.
reason - The reason the request failed validation.ValidationExceptionReason public ValidationException withReason(ValidationExceptionReason reason)
The reason the request failed validation.
reason - The reason the request failed validation.ValidationExceptionReason