@Generated(value="software.amazon.awssdk:codegen") public final class ValidationException extends AmpException implements ToCopyableBuilder<ValidationException.Builder,ValidationException>
The input fails to satisfy the constraints specified by an AWS service.
Modifier and Type | Class and Description |
---|---|
static interface |
ValidationException.Builder |
Modifier and Type | Method and Description |
---|---|
static ValidationException.Builder |
builder() |
List<ValidationExceptionField> |
fieldList()
The field that caused the error, if applicable.
|
boolean |
hasFieldList()
Returns true if the FieldList property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
ValidationExceptionReason |
reason()
Reason the request failed validation.
|
String |
reasonAsString()
Reason the request failed validation.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ValidationException.Builder> |
serializableBuilderClass() |
ValidationException.Builder |
toBuilder()
Create a
AwsServiceException.Builder initialized with the properties of this AwsServiceException . |
awsErrorDetails, getMessage, isClockSkewException, isThrottlingException
extendedRequestId, requestId, statusCode
create, retryable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
copy
equalsBySdkFields
public ValidationException.Builder toBuilder()
AwsServiceException
AwsServiceException.Builder
initialized with the properties of this AwsServiceException
.toBuilder
in interface ToCopyableBuilder<ValidationException.Builder,ValidationException>
toBuilder
in class AmpException
public static ValidationException.Builder builder()
public static Class<? extends ValidationException.Builder> serializableBuilderClass()
public boolean hasFieldList()
public List<ValidationExceptionField> fieldList()
The field that caused the error, if applicable. If more than one field caused the error, pick one and elaborate in the message.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasFieldList()
to see if a value was sent in this field.
public ValidationExceptionReason reason()
Reason the request failed validation.
If the service returns an enum value that is not available in the current SDK version, reason
will
return ValidationExceptionReason.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is
available from reasonAsString()
.
ValidationExceptionReason
public String reasonAsString()
Reason the request failed validation.
If the service returns an enum value that is not available in the current SDK version, reason
will
return ValidationExceptionReason.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is
available from reasonAsString()
.
ValidationExceptionReason