JsonSerializationException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| JsonSerializationException() |
Initializes a new instance of the JsonSerializationException class. |
| JsonSerializationException(String) |
Initializes a new instance of the JsonSerializationException class with a specified error message. |
| 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()
Initializes a new instance of the JsonSerializationException class.
public JsonSerializationException();
Public Sub New ()
Applies to
JsonSerializationException(String)
Initializes a new instance of the JsonSerializationException class with a specified error message.
public JsonSerializationException(string message);
new Microsoft.AnalysisServices.Tabular.Json.JsonSerializationException : string -> Microsoft.AnalysisServices.Tabular.Json.JsonSerializationException
Public Sub New (message As String)
Parameters
- message
- String
The error message that explains the reason for the exception.
Applies to
JsonSerializationException(SerializationInfo, StreamingContext)
Initializes a new instance of the JsonSerializationException class.
public JsonSerializationException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.AnalysisServices.Tabular.Json.JsonSerializationException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.AnalysisServices.Tabular.Json.JsonSerializationException
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
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.
public JsonSerializationException(string message, Exception innerException);
new Microsoft.AnalysisServices.Tabular.Json.JsonSerializationException : string * Exception -> Microsoft.AnalysisServices.Tabular.Json.JsonSerializationException
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
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.
public JsonSerializationException(string message, string path, int lineNumber, int linePosition, Exception innerException);
new Microsoft.AnalysisServices.Tabular.Json.JsonSerializationException : string * string * int * int * Exception -> Microsoft.AnalysisServices.Tabular.Json.JsonSerializationException
Public Sub New (message As String, path As String, lineNumber As Integer, linePosition As Integer, innerException As Exception)
Parameters
- message
- String
The error message that explains the reason for the exception.
- path
- String
The path to the JSON where the error occurred.
- lineNumber
- Int32
The line number indicating where the error occurred.
- linePosition
- Int32
The line position indicating where the error occurred.
- innerException
- Exception
The exception that is the cause of the current exception, or null if no inner exception is specified.