Class JsonSerializationException
The exception thrown when an error occurs during JSON serialization or deserialization.
Implements
Inherited Members
Namespace: Bayat.Json
Assembly: Bayat.Json.Runtime.dll
Syntax
[Serializable]
public class JsonSerializationException : JsonException, _Exception, ISerializable
Constructors
| Improve this Doc View SourceJsonSerializationException()
Initializes a new instance of the Json
Declaration
public JsonSerializationException()
JsonSerializationException(SerializationInfo, StreamingContext)
Initializes a new instance of the Json
Declaration
public JsonSerializationException(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. |
JsonSerializationException(String)
Initializes a new instance of the Json
Declaration
public JsonSerializationException(string message)
Parameters
Type | Name | Description |
---|---|---|
System. |
message | The error message that explains the reason for the exception. |
JsonSerializationException(String, Exception)
Initializes a new instance of the Json
Declaration
public JsonSerializationException(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, Exception)
Declaration
public static JsonSerializationException Create(IJsonLineInfo lineInfo, string path, string message, Exception ex)
Parameters
Type | Name | Description |
---|---|---|
IJson |
lineInfo | |
System. |
path | |
System. |
message | |
System. |
ex |
Returns
Type | Description |
---|---|
Json |
Create(JsonReader, String)
Declaration
public static JsonSerializationException Create(JsonReader reader, string message)
Parameters
Type | Name | Description |
---|---|---|
Json |
reader | |
System. |
message |
Returns
Type | Description |
---|---|
Json |
Create(JsonReader, String, Exception)
Declaration
public static JsonSerializationException Create(JsonReader reader, string message, Exception ex)
Parameters
Type | Name | Description |
---|---|---|
Json |
reader | |
System. |
message | |
System. |
ex |
Returns
Type | Description |
---|---|
Json |