JsonSchemaException
Returns detailed information about the schema exception.
JSON Schema validation has been moved to its own package. See http://www.newtonsoft.com/jsonschema for more details.using System;
using System.Runtime.Serialization;
namespace Newtonsoft.Json.Schema
{
[Serializable]
[Obsolete("JSON Schema validation has been moved to its own package. See http://www.newtonsoft.com/jsonschema for more details.")]
public class JsonSchemaException : JsonException
{
public int LineNumber { get; set; }
public int LinePosition { get; set; }
public string Path { get; set; }
public JsonSchemaException()
{
}
public JsonSchemaException(string message)
: base(message)
{
}
public JsonSchemaException(string message, Exception innerException)
: base(message, innerException)
{
}
public JsonSchemaException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
internal JsonSchemaException(string message, Exception innerException, string path, int lineNumber, int linePosition)
: base(message, innerException)
{
Path = path;
LineNumber = lineNumber;
LinePosition = linePosition;
}
}
}