JsonException Konstruktoren
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Überlädt
| Name | Beschreibung |
|---|---|
| JsonException() |
Initialisiert eine neue Instanz der JsonException-Klasse. |
| JsonException(String) |
Initialisiert eine neue Instanz der JsonException Klasse mit einer angegebenen Fehlermeldung. |
| JsonException(SerializationInfo, StreamingContext) |
Veraltet.
Erstellt ein neues Ausnahmeobjekt mit serialisierten Daten. |
| JsonException(String, Exception) |
Initialisiert eine neue Instanz der JsonException Klasse mit einer angegebenen Fehlermeldung und einem Verweis auf die innere Ausnahme, die die Ursache dieser Ausnahme ist. |
| JsonException(String, String, Nullable<Int64>, Nullable<Int64>) |
Erstellt ein neues Ausnahmeobjekt zum Weiterleiten von Fehlerinformationen an den Benutzer. |
| JsonException(String, String, Nullable<Int64>, Nullable<Int64>, Exception) |
Erstellt ein neues Ausnahmeobjekt zum Weiterleiten von Fehlerinformationen an den Benutzer, der eine angegebene innere Ausnahme enthält. |
JsonException()
- Quelle:
- JsonException.cs
- Quelle:
- JsonException.cs
- Quelle:
- JsonException.cs
- Quelle:
- JsonException.cs
- Quelle:
- JsonException.cs
- Quelle:
- JsonException.cs
- Quelle:
- JsonException.cs
Initialisiert eine neue Instanz der JsonException-Klasse.
public:
JsonException();
public JsonException();
Public Sub New ()
Gilt für:
JsonException(String)
- Quelle:
- JsonException.cs
- Quelle:
- JsonException.cs
- Quelle:
- JsonException.cs
- Quelle:
- JsonException.cs
- Quelle:
- JsonException.cs
- Quelle:
- JsonException.cs
- Quelle:
- JsonException.cs
Initialisiert eine neue Instanz der JsonException Klasse mit einer angegebenen Fehlermeldung.
public:
JsonException(System::String ^ message);
public JsonException(string? message);
public JsonException(string message);
new System.Text.Json.JsonException : string -> System.Text.Json.JsonException
Public Sub New (message As String)
Parameter
- message
- String
Die kontextspezifische Fehlermeldung.
Gilt für:
JsonException(SerializationInfo, StreamingContext)
- Quelle:
- JsonException.cs
- Quelle:
- JsonException.cs
- Quelle:
- JsonException.cs
- Quelle:
- JsonException.cs
- Quelle:
- JsonException.cs
- Quelle:
- JsonException.cs
- Quelle:
- JsonException.cs
Achtung
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
Erstellt ein neues Ausnahmeobjekt mit serialisierten Daten.
protected:
JsonException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected JsonException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
protected JsonException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Text.Json.JsonException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Text.Json.JsonException
new System.Text.Json.JsonException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Text.Json.JsonException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameter
- info
- SerializationInfo
Die serialisierten Objektdaten über die ausgelöste Ausnahme.
- context
- StreamingContext
Ein Objekt, das Kontextinformationen zur Quelle oder zum Ziel enthält.
- Attribute
Ausnahmen
info ist null.
Gilt für:
JsonException(String, Exception)
- Quelle:
- JsonException.cs
- Quelle:
- JsonException.cs
- Quelle:
- JsonException.cs
- Quelle:
- JsonException.cs
- Quelle:
- JsonException.cs
- Quelle:
- JsonException.cs
- Quelle:
- JsonException.cs
Initialisiert eine neue Instanz der JsonException Klasse mit einer angegebenen Fehlermeldung und einem Verweis auf die innere Ausnahme, die die Ursache dieser Ausnahme ist.
public:
JsonException(System::String ^ message, Exception ^ innerException);
public JsonException(string? message, Exception? innerException);
public JsonException(string message, Exception innerException);
new System.Text.Json.JsonException : string * Exception -> System.Text.Json.JsonException
Public Sub New (message As String, innerException As Exception)
Parameter
- message
- String
Die kontextspezifische Fehlermeldung.
- innerException
- Exception
Die Ausnahme, die die aktuelle Ausnahme verursacht hat.
Gilt für:
JsonException(String, String, Nullable<Int64>, Nullable<Int64>)
- Quelle:
- JsonException.cs
- Quelle:
- JsonException.cs
- Quelle:
- JsonException.cs
- Quelle:
- JsonException.cs
- Quelle:
- JsonException.cs
- Quelle:
- JsonException.cs
- Quelle:
- JsonException.cs
Erstellt ein neues Ausnahmeobjekt zum Weiterleiten von Fehlerinformationen an den Benutzer.
public:
JsonException(System::String ^ message, System::String ^ path, Nullable<long> lineNumber, Nullable<long> bytePositionInLine);
public JsonException(string? message, string? path, long? lineNumber, long? bytePositionInLine);
public JsonException(string message, string path, long? lineNumber, long? bytePositionInLine);
new System.Text.Json.JsonException : string * string * Nullable<int64> * Nullable<int64> -> System.Text.Json.JsonException
Public Sub New (message As String, path As String, lineNumber As Nullable(Of Long), bytePositionInLine As Nullable(Of Long))
Parameter
- message
- String
Die kontextspezifische Fehlermeldung.
- path
- String
Der Pfad, in dem der ungültige JSON-Code aufgetreten ist.
Die Zeilennummer (beginnend bei 0), bei der beim Deserialisieren der ungültige JSON-Code aufgetreten ist.
Die Byteanzahl innerhalb der aktuellen Zeile (beginnend bei 0), bei der der ungültige JSON-Code aufgetreten ist.
Hinweise
Beachten Sie, dass bytePositionInLine die Anzahl der Bytes (d. h. UTF-8-Codeeinheiten) und nicht Zeichen oder Skalare gezählt wird.
Gilt für:
JsonException(String, String, Nullable<Int64>, Nullable<Int64>, Exception)
- Quelle:
- JsonException.cs
- Quelle:
- JsonException.cs
- Quelle:
- JsonException.cs
- Quelle:
- JsonException.cs
- Quelle:
- JsonException.cs
- Quelle:
- JsonException.cs
- Quelle:
- JsonException.cs
Erstellt ein neues Ausnahmeobjekt zum Weiterleiten von Fehlerinformationen an den Benutzer, der eine angegebene innere Ausnahme enthält.
public:
JsonException(System::String ^ message, System::String ^ path, Nullable<long> lineNumber, Nullable<long> bytePositionInLine, Exception ^ innerException);
public JsonException(string? message, string? path, long? lineNumber, long? bytePositionInLine, Exception? innerException);
public JsonException(string message, string path, long? lineNumber, long? bytePositionInLine, Exception innerException);
new System.Text.Json.JsonException : string * string * Nullable<int64> * Nullable<int64> * Exception -> System.Text.Json.JsonException
Public Sub New (message As String, path As String, lineNumber As Nullable(Of Long), bytePositionInLine As Nullable(Of Long), innerException As Exception)
Parameter
- message
- String
Die kontextspezifische Fehlermeldung.
- path
- String
Der Pfad, in dem der ungültige JSON-Code aufgetreten ist.
Die Zeilennummer (beginnend bei 0), bei der beim Deserialisieren der ungültige JSON-Code aufgetreten ist.
Die Byteanzahl (beginnend bei 0) innerhalb der aktuellen Zeile, in der der ungültige JSON-Code gefunden wurde.
- innerException
- Exception
Die Ausnahme, die die aktuelle Ausnahme verursacht hat.
Hinweise
Beachten Sie, dass die bytePositionInLine Anzahl der Bytes (d. h. UTF-8-Codeeinheiten) und nicht zeichen oder skalar ist.