DbException 생성자

정의

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

오버로드

DbException()

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

DbException(String)

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

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

지정된 serializatoin 정보와 컨텍스트를 사용하여 DbException 클래스의 새 인스턴스를 초기화합니다.

DbException(String, Exception)

지정한 오류 메시지 및 이 예외를 발생시킨 내부 예외에 대한 참조를 포함하는 DbException 클래스의 새 인스턴스를 초기화합니다.

DbException(String, Int32)

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

설명

클래스는 DbException 공급자별 예외 클래스 구현의 기본 클래스로 사용되는 추상 클래스입니다.

DbException()

Source:
DbException.cs
Source:
DbException.cs
Source:
DbException.cs

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

protected:
 DbException();
protected DbException ();
Protected Sub New ()

설명

클래스는 DbException 공급자별 예외 클래스 구현의 기본 클래스로 사용되는 추상 클래스입니다.

추가 정보

적용 대상

DbException(String)

Source:
DbException.cs
Source:
DbException.cs
Source:
DbException.cs

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

protected:
 DbException(System::String ^ message);
protected DbException (string message);
protected DbException (string? message);
new System.Data.Common.DbException : string -> System.Data.Common.DbException
Protected Sub New (message As String)

매개 변수

message
String

이 예외에 표시할 메시지입니다.

설명

클래스는 DbException 공급자별 예외 클래스 구현의 기본 클래스로 사용되는 추상 클래스입니다.

추가 정보

적용 대상

DbException(SerializationInfo, StreamingContext)

Source:
DbException.cs
Source:
DbException.cs
Source:
DbException.cs

주의

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

지정된 serializatoin 정보와 컨텍스트를 사용하여 DbException 클래스의 새 인스턴스를 초기화합니다.

protected:
 DbException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected DbException (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 DbException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Data.Common.DbException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Data.Common.DbException
[<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.Data.Common.DbException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Data.Common.DbException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

매개 변수

info
SerializationInfo

throw되는 예외에 대해 serialize된 개체 데이터를 보유하는 SerializationInfo입니다.

context
StreamingContext

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

특성

설명

클래스는 DbException 공급자별 예외 클래스 구현의 기본 클래스로 사용되는 추상 클래스입니다.

추가 정보

적용 대상

DbException(String, Exception)

Source:
DbException.cs
Source:
DbException.cs
Source:
DbException.cs

지정한 오류 메시지 및 이 예외를 발생시킨 내부 예외에 대한 참조를 포함하는 DbException 클래스의 새 인스턴스를 초기화합니다.

protected:
 DbException(System::String ^ message, Exception ^ innerException);
protected DbException (string message, Exception innerException);
protected DbException (string? message, Exception? innerException);
new System.Data.Common.DbException : string * Exception -> System.Data.Common.DbException
Protected Sub New (message As String, innerException As Exception)

매개 변수

message
String

오류 메시지 문자열입니다.

innerException
Exception

내부 예외 참조입니다.

설명

클래스는 DbException 공급자별 예외 클래스 구현의 기본 클래스로 사용되는 추상 클래스입니다.

추가 정보

적용 대상

DbException(String, Int32)

Source:
DbException.cs
Source:
DbException.cs
Source:
DbException.cs

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

protected:
 DbException(System::String ^ message, int errorCode);
protected DbException (string? message, int errorCode);
protected DbException (string message, int errorCode);
new System.Data.Common.DbException : string * int -> System.Data.Common.DbException
Protected Sub New (message As String, errorCode As Integer)

매개 변수

message
String

예외에 대한 이유를 설명하는 오류 메시지입니다.

errorCode
Int32

예외에 대한 오류 코드입니다.

설명

클래스는 DbException 공급자별 예외 클래스 구현의 기본 클래스로 사용되는 추상 클래스입니다.

추가 정보

적용 대상