Class JsonException
The exception thrown when an error occurs during JSON serialization or deserialization.
Inheritance
Implements
Inherited Members
Namespace: Bayat.Json
Assembly: Bayat.Json.Runtime.dll
Syntax
[Serializable]
public class JsonException : Exception, _Exception, ISerializable
Constructors
| Improve this Doc View SourceJsonException()
Initializes a new instance of the Json
Declaration
public JsonException()
JsonException(SerializationInfo, StreamingContext)
Initializes a new instance of the Json
Declaration
public JsonException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System. |
info | The System. |
System. |
context | The System. |
Exceptions
Type | Condition |
---|---|
System. |
The |
System. |
The class name is null or System. |
JsonException(String)
Initializes a new instance of the Json
Declaration
public JsonException(string message)
Parameters
Type | Name | Description |
---|---|---|
System. |
message | The error message that explains the reason for the exception. |
JsonException(String, Exception)
Initializes a new instance of the Json
Declaration
public JsonException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System. |
message | The error message that explains the reason for the exception. |
System. |
innerException | The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. |
Methods
| Improve this Doc View SourceCreate(IJsonLineInfo, String, String)
Declaration
public static JsonException Create(IJsonLineInfo lineInfo, string path, string message)
Parameters
Type | Name | Description |
---|---|---|
IJson |
lineInfo | |
System. |
path | |
System. |
message |
Returns
Type | Description |
---|---|
Json |