<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />

JsonSchemaException

Returns detailed information about the schema exception.

JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details.
public int LineNumber { get; }

Gets the line number indicating where the error occurred.

public int LinePosition { get; }

Gets the line position indicating where the error occurred.

public string Path { get; }

Gets the path to the JSON where the error occurred.

Initializes a new instance of the JsonSchemaException class.

public JsonSchemaException(string message)

Initializes a new instance of the JsonSchemaException class with a specified error message.

public JsonSchemaException(string message, Exception innerException)

Initializes a new instance of the JsonSchemaException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Initializes a new instance of the JsonSchemaException class.