Udostępnij przez


JsonSerializationException Class

Definition

The exception thrown when an error occurs during JSON serialization or deserialization.

[System.Serializable]
public class JsonSerializationException : Microsoft.AnalysisServices.Tabular.Json.JsonException
[<System.Serializable>]
type JsonSerializationException = class
    inherit JsonException
Public Class JsonSerializationException
Inherits JsonException
Inheritance
JsonSerializationException
Attributes

Constructors

Name Description
JsonSerializationException()

Initializes a new instance of the JsonSerializationException class.

JsonSerializationException(SerializationInfo, StreamingContext)

Initializes a new instance of the JsonSerializationException class.

JsonSerializationException(String, Exception)

Initializes a new instance of the JsonSerializationException class with a specified error message and a reference to the inner exception that is the cause of this exception.

JsonSerializationException(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.

JsonSerializationException(String)

Initializes a new instance of the JsonSerializationException class with a specified error message.

Properties

Name Description
LineNumber

Gets the line number indicating where the error occurred.

LinePosition

Gets the line position indicating where the error occurred.

Path

Gets the path to the JSON where the error occurred.

Applies to