@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ValidationException extends AWSNetworkManagerException
The input fails to satisfy the constraints.
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> |
getFields()
The fields that caused the error, if applicable.
|
String |
getReason()
The reason for the error.
|
void |
setFields(Collection<ValidationExceptionField> fields)
The fields that caused the error, if applicable.
|
void |
setReason(String reason)
The reason for the error.
|
ValidationException |
withFields(Collection<ValidationExceptionField> fields)
The fields that caused the error, if applicable.
|
ValidationException |
withFields(ValidationExceptionField... fields)
The fields that caused the error, if applicable.
|
ValidationException |
withReason(String reason)
The reason for the error.
|
ValidationException |
withReason(ValidationExceptionReason reason)
The reason for the error.
|
getErrorCode, getErrorMessage, getErrorType, getHttpHeaders, getMessage, getProxyHost, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setHttpHeaders, setProxyHost, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCodeisRetryableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ValidationException(String message)
message - Describes the error encountered.public void setReason(String reason)
The reason for the error.
reason - The reason for the error.ValidationExceptionReasonpublic String getReason()
The reason for the error.
ValidationExceptionReasonpublic ValidationException withReason(String reason)
The reason for the error.
reason - The reason for the error.ValidationExceptionReasonpublic ValidationException withReason(ValidationExceptionReason reason)
The reason for the error.
reason - The reason for the error.ValidationExceptionReasonpublic List<ValidationExceptionField> getFields()
The fields that caused the error, if applicable.
public void setFields(Collection<ValidationExceptionField> fields)
The fields that caused the error, if applicable.
fields - The fields that caused the error, if applicable.public ValidationException withFields(ValidationExceptionField... fields)
The fields that caused the error, if applicable.
NOTE: This method appends the values to the existing list (if any). Use
setFields(java.util.Collection) or withFields(java.util.Collection) if you want to override the
existing values.
fields - The fields that caused the error, if applicable.public ValidationException withFields(Collection<ValidationExceptionField> fields)
The fields that caused the error, if applicable.
fields - The fields that caused the error, if applicable.