Class JsonWriterException
The exception thrown when an error occurs while reading JSON text.
Implements
Inherited Members
Namespace: Bayat.Json
Assembly: Bayat.Json.Runtime.dll
Syntax
[Serializable]
public class JsonWriterException : JsonException, _Exception, ISerializable
Constructors
| Improve this Doc View SourceJsonWriterException()
Initializes a new instance of the Json
Declaration
public JsonWriterException()
JsonWriterException(SerializationInfo, StreamingContext)
Initializes a new instance of the Json
Declaration
public JsonWriterException(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. |
JsonWriterException(String)
Initializes a new instance of the Json
Declaration
public JsonWriterException(string message)
Parameters
Type | Name | Description |
---|---|---|
System. |
message | The error message that explains the reason for the exception. |
JsonWriterException(String, Exception)
Initializes a new instance of the Json
Declaration
public JsonWriterException(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. |
JsonWriterException(String, Exception, String)
Declaration
public JsonWriterException(string message, Exception innerException, string path)
Parameters
Type | Name | Description |
---|---|---|
System. |
message | |
System. |
innerException | |
System. |
path |
Properties
| Improve this Doc View SourcePath
Gets the path to the JSON where the error occurred.
Declaration
public string Path { get; }
Property Value
Type | Description |
---|---|
System. |
The path to the JSON where the error occurred. |
Methods
| Improve this Doc View SourceCreate(JsonWriter, String, Exception)
Declaration
public static JsonWriterException Create(JsonWriter writer, string message, Exception ex)
Parameters
Type | Name | Description |
---|---|---|
Json |
writer | |
System. |
message | |
System. |
ex |
Returns
Type | Description |
---|---|
Json |
Create(String, String, Exception)
Declaration
public static JsonWriterException Create(string path, string message, Exception ex)
Parameters
Type | Name | Description |
---|---|---|
System. |
path | |
System. |
message | |
System. |
ex |
Returns
Type | Description |
---|---|
Json |