@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ValidationException extends AWSMarketplaceAgreementException
The input fails to satisfy the constraints specified by the service.
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 associated with the error.
|
String |
getReason()
The reason associated with the error.
|
String |
getRequestId()
The unique identifier associated with the error.
|
void |
setFields(Collection<ValidationExceptionField> fields)
The fields associated with the error.
|
void |
setReason(String reason)
The reason associated with the error.
|
void |
setRequestId(String requestId)
The unique identifier associated with the error.
|
ValidationException |
withFields(Collection<ValidationExceptionField> fields)
The fields associated with the error.
|
ValidationException |
withFields(ValidationExceptionField... fields)
The fields associated with the error.
|
ValidationException |
withReason(String reason)
The reason associated with the error.
|
ValidationException |
withReason(ValidationExceptionReason reason)
The reason associated with the error.
|
ValidationException |
withRequestId(String requestId)
The unique identifier associated with the error.
|
getErrorCode, getErrorMessage, getErrorType, getHttpHeaders, getMessage, getProxyHost, getRawResponse, getRawResponseContent, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setHttpHeaders, setProxyHost, setRawResponse, setRawResponseContent, 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> getFields()
The fields associated with the error.
public void setFields(Collection<ValidationExceptionField> fields)
The fields associated with the error.
fields
- The fields associated with the error.public ValidationException withFields(ValidationExceptionField... fields)
The fields associated with the error.
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 associated with the error.public ValidationException withFields(Collection<ValidationExceptionField> fields)
The fields associated with the error.
fields
- The fields associated with the error.public void setReason(String reason)
The reason associated with the error.
reason
- The reason associated with the error.ValidationExceptionReason
public String getReason()
The reason associated with the error.
ValidationExceptionReason
public ValidationException withReason(String reason)
The reason associated with the error.
reason
- The reason associated with the error.ValidationExceptionReason
public ValidationException withReason(ValidationExceptionReason reason)
The reason associated with the error.
reason
- The reason associated with the error.ValidationExceptionReason
public void setRequestId(String requestId)
The unique identifier associated with the error.
setRequestId
in class AmazonServiceException
requestId
- The unique identifier associated with the error.public String getRequestId()
The unique identifier associated with the error.
getRequestId
in class AmazonServiceException
public ValidationException withRequestId(String requestId)
The unique identifier associated with the error.
requestId
- The unique identifier associated with the error.