Table of Contents

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
SerializationException
JsonSchemaValidationException
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

innerException Exception

The 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

message string

The 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

message string

The error message that explains the reason for the exception.

innerException Exception

The 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

message string

The error message that explains the reason for the exception.

validationErrors JsonArray

A 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

validationErrors JsonArray

A 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; }

Property Value

JsonArray

A JsonArray of validation error detail objects, or null if no specific validation errors were provided.