SqliteException 构造函数

定义

重载

SqliteException(String, Int32)

初始化 SqliteException 类的新实例。

SqliteException(String, Int32, Int32)

初始化 SqliteException 类的新实例。

SqliteException(String, Int32)

初始化 SqliteException 类的新实例。

public SqliteException (string message, int errorCode);
public SqliteException (string? message, int errorCode);
new Microsoft.Data.Sqlite.SqliteException : string * int -> Microsoft.Data.Sqlite.SqliteException
Public Sub New (message As String, errorCode As Integer)

参数

message
String

要针对异常显示的消息。 可以为 null。

errorCode
Int32

SQLite 错误代码。

适用于

SqliteException(String, Int32, Int32)

初始化 SqliteException 类的新实例。

public SqliteException (string message, int errorCode, int extendedErrorCode);
public SqliteException (string? message, int errorCode, int extendedErrorCode);
new Microsoft.Data.Sqlite.SqliteException : string * int * int -> Microsoft.Data.Sqlite.SqliteException
Public Sub New (message As String, errorCode As Integer, extendedErrorCode As Integer)

参数

message
String

要针对异常显示的消息。 可以为 null。

errorCode
Int32

SQLite 错误代码。

extendedErrorCode
Int32

扩展的 SQLite 错误代码。

适用于