Click or drag to resize
Json.NET

JsonSerializationException Constructor (String, String, Int32, Int32, Exception)

 
Initializes a new instance of the JsonSerializationException class with a specified error message, JSON path, line number, line position, and a reference to the inner exception that is the cause of this exception.

Namespace:  Newtonsoft.Json
Assembly:  Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax
C#
public JsonSerializationException(
	string message,
	string path,
	int lineNumber,
	int linePosition,
	Exception innerException
)

Parameters

message
Type: SystemString
The error message that explains the reason for the exception.
path
Type: SystemString
The path to the JSON where the error occurred.
lineNumber
Type: SystemInt32
The line number indicating where the error occurred.
linePosition
Type: SystemInt32
The line position indicating where the error occurred.
innerException
Type: SystemException
The exception that is the cause of the current exception, or null if no inner exception is specified.
See Also