JsonException 생성자
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
| Name | Description |
|---|---|
| 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
- Source:
- JsonException.cs
- 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
- Source:
- JsonException.cs
- 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
- Source:
- JsonException.cs
- 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);
[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)
매개 변수
- info
- SerializationInfo
throw되는 예외에 대한 직렬화된 개체 데이터입니다.
- context
- StreamingContext
원본 또는 대상에 대한 컨텍스트 정보를 포함하는 개체입니다.
- 특성
예외
info은 null입니다.
적용 대상
JsonException(String, Exception)
- Source:
- JsonException.cs
- Source:
- JsonException.cs
- Source:
- JsonException.cs
- Source:
- JsonException.cs
- 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
- Source:
- JsonException.cs
- 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이 발생한 경로입니다.
설명
bytePositionInLine 문자나 스칼라가 아닌 바이트 수(즉, UTF-8 코드 단위)를 계산합니다.
적용 대상
JsonException(String, String, Nullable<Int64>, Nullable<Int64>, Exception)
- Source:
- JsonException.cs
- Source:
- JsonException.cs
- Source:
- JsonException.cs
- Source:
- JsonException.cs
- 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이 발생한 경로입니다.
- innerException
- Exception
현재 예외를 발생시킨 예외입니다.
설명
bytePositionInLine 문자나 스칼라가 아닌 바이트 수(즉, UTF-8 코드 단위)를 계산합니다.