Class 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 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 message
        validationMessages - 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
      • JsonSchemaValidationException

        public JsonSchemaValidationException​(String message,
                                             Throwable cause)
        Constructs a new SerializationValidationException with the specified message and cause.
        Parameters:
        message - The detail message
        cause - The cause
    • Method Detail

      • getValidationMessages

        public List<String> getValidationMessages()
        Returns a list of the specific validation error messages associated with this exception.
        Returns:
        a copy of the list containing all validation error messages that provide details about why JSON schema validation failed