Package com.solace.serdes.jsonschema
Class JsonSchemaValidationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.solace.serdes.SerializationException
-
- com.solace.serdes.jsonschema.JsonSchemaValidationException
-
- All Implemented Interfaces:
Serializable
public class JsonSchemaValidationException extends com.solace.serdes.SerializationException
Exception thrown when validation of serialized data against the schema fails.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JsonSchemaValidationException()
Constructs a new SerializationValidationException with no message.JsonSchemaValidationException(String message)
Constructs a new SerializationValidationException with the specified message.JsonSchemaValidationException(String message, Throwable cause)
Constructs a new SerializationValidationException with the specified message and cause.JsonSchemaValidationException(String message, List<String> validationMessages)
Constructs a new JsonSchemaValidationException with the specified detail message and a list of specific validation error messages.JsonSchemaValidationException(Throwable cause)
Constructs a new SerializationValidationException with the specified cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getValidationMessages()
Returns a list of the specific validation error messages associated with this exception.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
JsonSchemaValidationException
public JsonSchemaValidationException(String message, List<String> validationMessages)
Constructs a new JsonSchemaValidationException with the specified detail message and a list of specific validation error messages.- Parameters:
message
- the detail messagevalidationMessages
- a list of specific JSON schema validation error messages that provide details about the validation failures
-
JsonSchemaValidationException
public JsonSchemaValidationException()
Constructs a new SerializationValidationException with no message.
-
JsonSchemaValidationException
public JsonSchemaValidationException(String message)
Constructs a new SerializationValidationException with the specified message.- Parameters:
message
- The detail message
-
JsonSchemaValidationException
public JsonSchemaValidationException(Throwable cause)
Constructs a new SerializationValidationException with the specified cause.- Parameters:
cause
- The cause
-
-