Class ValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
software.amazon.awssdk.eventstreamrpc.model.EventStreamOperationError
software.amazon.awssdk.eventstreamrpc.model.ValidationException
- All Implemented Interfaces:
Serializable,EventStreamJsonMessage
Thrown when a validation exception occurs
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe error code associated with a validation exception -
Constructor Summary
ConstructorsConstructorDescriptionValidationException(String serviceName, String message) Creates a new ValidationException with the given service name and message -
Method Summary
Methods inherited from class software.amazon.awssdk.eventstreamrpc.model.EventStreamOperationError
getErrorCode, getMessage, getServiceMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage
fromJson, isVoid, postFromJson, toPayload
-
Field Details
-
ERROR_CODE
The error code associated with a validation exception- See Also:
-
-
Constructor Details
-
ValidationException
Creates a new ValidationException with the given service name and message- Parameters:
serviceName- The name of the service that caused the exceptionmessage- The reason for the exception
-
-
Method Details
-
getApplicationModelType
Returns the named model type. May be used for a header.- Returns:
- the named model type
-