JsonException 생성자

정의

오버로드

JsonException()

JsonException 클래스의 새 인스턴스를 초기화합니다.

JsonException(String)

지정된 오류 메시지를 사용하여 JsonException 클래스의 새 인스턴스를 초기화합니다.

JsonException(SerializationInfo, StreamingContext)
사용되지 않음.

직렬화된 데이터로 새 예외 개체를 만듭니다.

JsonException(String, Exception)

지정된 오류 메시지와 해당 예외의 원인인 내부 예외를 참조하여, JsonException 클래스의 새 인스턴스를 초기화합니다.

JsonException(String, String, Nullable<Int64>, Nullable<Int64>)

사용자에게 오류 정보를 릴레이하기 위해 새로운 예외 개체를 만듭니다.

JsonException(String, String, Nullable<Int64>, Nullable<Int64>, Exception)

지정된 내부 예외를 포함하는 사용자에게 오류 정보를 릴레이하는 새 예외 개체를 만듭니다.

JsonException()

Source:
JsonException.cs
Source:
JsonException.cs
Source:
JsonException.cs

JsonException 클래스의 새 인스턴스를 초기화합니다.

public:
 JsonException();
public JsonException ();
Public Sub New ()

적용 대상

JsonException(String)

Source:
JsonException.cs
Source:
JsonException.cs
Source:
JsonException.cs

지정된 오류 메시지를 사용하여 JsonException 클래스의 새 인스턴스를 초기화합니다.

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)

매개 변수

message
String

컨텍스트별 오류 메시지입니다.

적용 대상

JsonException(SerializationInfo, StreamingContext)

Source:
JsonException.cs
Source:
JsonException.cs
Source:
JsonException.cs

주의

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

직렬화된 데이터로 새 예외 개체를 만듭니다.

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}")]
protected JsonException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Text.Json.JsonException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Text.Json.JsonException
[<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
Protected Sub New (info As SerializationInfo, context As StreamingContext)

매개 변수

info
SerializationInfo

throw되는 예외에 대한 serialize된 개체 데이터입니다.

context
StreamingContext

소스 또는 대상에 대한 컨텍스트 정보를 포함하는 개체입니다.

특성

예외

infonull입니다.

적용 대상

JsonException(String, Exception)

Source:
JsonException.cs
Source:
JsonException.cs
Source:
JsonException.cs

지정된 오류 메시지와 해당 예외의 원인인 내부 예외를 참조하여, JsonException 클래스의 새 인스턴스를 초기화합니다.

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)

매개 변수

message
String

컨텍스트별 오류 메시지입니다.

innerException
Exception

현재 예외를 발생시킨 예외입니다.

적용 대상

JsonException(String, String, Nullable<Int64>, Nullable<Int64>)

Source:
JsonException.cs
Source:
JsonException.cs
Source:
JsonException.cs

사용자에게 오류 정보를 릴레이하기 위해 새로운 예외 개체를 만듭니다.

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))

매개 변수

message
String

컨텍스트별 오류 메시지입니다.

path
String

잘못된 JSON이 발견된 경로입니다.

lineNumber
Nullable<Int64>

역직렬화할 때 잘못된 JSON이 발견된 줄 번호(0부터 시작)입니다.

bytePositionInLine
Nullable<Int64>

잘못된 JSON이 발견된 현재 줄(0부터 시작)의 바이트 수입니다.

설명

문자나 스칼라가 bytePositionInLine 아닌 바이트 수(즉, UTF-8 코드 단위)를 계산합니다.

적용 대상

JsonException(String, String, Nullable<Int64>, Nullable<Int64>, Exception)

Source:
JsonException.cs
Source:
JsonException.cs
Source:
JsonException.cs

지정된 내부 예외를 포함하는 사용자에게 오류 정보를 릴레이하는 새 예외 개체를 만듭니다.

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)

매개 변수

message
String

컨텍스트별 오류 메시지입니다.

path
String

잘못된 JSON이 발견된 경로입니다.

lineNumber
Nullable<Int64>

역직렬화할 때 잘못된 JSON이 발견된 줄 번호(0부터 시작)입니다.

bytePositionInLine
Nullable<Int64>

잘못된 JSON이 발견된 현재 줄의 바이트 수입니다(0부터 시작).

innerException
Exception

현재 예외를 발생시킨 예외입니다.

설명

bytePositionInLine 문자나 스칼라가 아닌 바이트 수(즉, UTF-8 코드 단위)를 계산합니다.

적용 대상