JsonException Constructors

Definition

Overloads

JsonException()

Initializes a new instance of the JsonException class.

JsonException(String)

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

JsonException(SerializationInfo, StreamingContext)

Initializes a new instance of the JsonException class.

JsonException(String, Exception)

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

JsonException()

Initializes a new instance of the JsonException class.

public JsonException ();
Public Sub New ()

Applies to

JsonException(String)

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

public JsonException (string message);
new Microsoft.AnalysisServices.Tabular.Json.JsonException : string -> Microsoft.AnalysisServices.Tabular.Json.JsonException
Public Sub New (message As String)

Parameters

message
String

The error message that explains the reason for the exception.

Applies to

JsonException(SerializationInfo, StreamingContext)

Initializes a new instance of the JsonException class.

public JsonException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.AnalysisServices.Tabular.Json.JsonException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.AnalysisServices.Tabular.Json.JsonException
Public Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

context
StreamingContext

The StreamingContext that contains contextual information about the source or destination.

Exceptions

The info parameter is null.

The class name is null or HResult is zero (0).

Applies to

JsonException(String, Exception)

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

public JsonException (string message, Exception innerException);
new Microsoft.AnalysisServices.Tabular.Json.JsonException : string * Exception -> Microsoft.AnalysisServices.Tabular.Json.JsonException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The error message that explains the reason for the exception.

innerException
Exception

The exception that is the cause of the current exception, or null if no inner exception is specified.

Applies to