Class JsonException
Represents errors that occur when accessing JSON data.
Inherited Members
Namespace: SlugBase
Assembly: SlugBase.dll
Syntax
public class JsonException : Exception, ISerializable, _Exception
Constructors
View SourceJsonException(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 |
|---|---|---|
| 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 |
|---|---|---|
| string | message | |
| Exception | inner | |
| JsonAny | json |
Properties
View SourceJsonPath
The path to the element that failed to parse, starting from the root object.
Declaration
public string JsonPath { get; set; }
Property Value
| Type | Description |
|---|---|
| string |