Class JsonSchemaValidationException
- Namespace
- Solace.SchemaRegistry.Serdes.JsonSchema
- Assembly
- Solace.SchemaRegistry.Serdes.JsonSchema.dll
Exception thrown when validation of serialized data against the JSON schema fails. This exception extends Solace.Serdes.SerializationException and provides specific details about JSON schema validation failures.
public class JsonSchemaValidationException : SerializationException, ISerializable
- Inheritance
-
SerializationExceptionJsonSchemaValidationException
- Implements
- Inherited Members
Constructors
JsonSchemaValidationException()
Initializes a new instance of the JsonSchemaValidationException class with no message.
public JsonSchemaValidationException()
JsonSchemaValidationException(Exception)
Initializes a new instance of the JsonSchemaValidationException class with the specified cause.
public JsonSchemaValidationException(Exception innerException)
Parameters
innerExceptionExceptionThe exception that is the cause of the current exception, or null if no inner exception is specified.
JsonSchemaValidationException(string)
Initializes a new instance of the JsonSchemaValidationException class with the specified message.
public JsonSchemaValidationException(string message)
Parameters
messagestringThe error message that explains the reason for the exception.
JsonSchemaValidationException(string, Exception)
Initializes a new instance of the JsonSchemaValidationException class with the specified message and cause.
public JsonSchemaValidationException(string message, Exception innerException)
Parameters
messagestringThe error message that explains the reason for the exception.
innerExceptionExceptionThe exception that is the cause of the current exception, or null if no inner exception is specified.
JsonSchemaValidationException(string, JsonArray)
Initializes a new instance of the JsonSchemaValidationException class with the specified message and validation errors.
public JsonSchemaValidationException(string message, JsonArray validationErrors)
Parameters
messagestringThe error message that explains the reason for the exception.
validationErrorsJsonArrayA JSON array containing detailed validation error information.
JsonSchemaValidationException(JsonArray)
Initializes a new instance of the JsonSchemaValidationException class with the specified validation errors.
public JsonSchemaValidationException(JsonArray validationErrors)
Parameters
validationErrorsJsonArrayA JSON array containing detailed validation error information.
Properties
ValidationErrors
Gets the JSON array containing detailed validation error information. Note: Any content from this JsonArray is for information purposes only.
public JsonArray ValidationErrors { get; }