Class JsonException
Represents errors that occur when accessing JSON data.
Inheritance
System.Object
System.Exception
JsonException
Implements
System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception
Inherited Members
System.Exception.GetBaseException()
System.Exception.ToString()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.Message
System.Exception.Data
System.Exception.InnerException
System.Exception.TargetSite
System.Exception.StackTrace
System.Exception.HelpLink
System.Exception.Source
System.Exception.HResult
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
Namespace: SlugBase
Assembly: SlugBase.dll
Syntax
public class JsonException : Exception, ISerializable, _Exception
Constructors
JsonException(JsonAny)
Initializes a new instance of the JsonException class with a path to the invalid element.
Declaration
public JsonException(JsonAny json)
Parameters
Type | Name | Description |
---|---|---|
JsonAny | json |
JsonException(String, JsonAny)
Initializes a new instance of the JsonException class with a specified error message and a path to the invalid element.
Declaration
public JsonException(string message, JsonAny json)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | |
JsonAny | json |
JsonException(String, Exception, JsonAny)
Initializes a new instance of the JsonException class with a specified error message, a reference to the inner exception that is the cause of this exception, and a path to the invalid element.
Declaration
public JsonException(string message, Exception inner, JsonAny json)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | |
System.Exception | inner | |
JsonAny | json |
Properties
JsonPath
The path to the element that failed to parse, starting from the root object.
Declaration
public string JsonPath { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Implements
System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception