EntitySqlException 构造函数

定义

初始化 EntitySqlException 的新实例。Initializes a new instance of EntitySqlException.

重载

EntitySqlException()

初始化 EntitySqlException 的新实例。Initializes a new instance of EntitySqlException.

EntitySqlException(String)

使用指定的错误消息初始化 EntitySqlException 的新实例。Initializes a new instance of EntitySqlException with a specialized error message.

EntitySqlException(String, Exception)

初始化 EntitySqlException 类的新实例,该类使用指定的错误消息和对作为此异常原因的内部异常的引用。Initializes a new instance of the EntitySqlException class that uses a specified error message and a reference to the inner exception that is the cause of this exception.

注解

有关如何处理代码异常的更多信息,请参见 ExceptionFor more information about how to handle code exceptions, see Exception.

EntitySqlException()

初始化 EntitySqlException 的新实例。Initializes a new instance of EntitySqlException.

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

注解

有关如何处理代码异常的更多信息,请参见 ExceptionFor more information about how to handle code exceptions, see Exception.

适用于

EntitySqlException(String)

使用指定的错误消息初始化 EntitySqlException 的新实例。Initializes a new instance of EntitySqlException with a specialized error message.

public:
 EntitySqlException(System::String ^ message);
public EntitySqlException (string message);
new System.Data.EntitySqlException : string -> System.Data.EntitySqlException
Public Sub New (message As String)

参数

message
String

描述错误的消息。The message that describes the error.

注解

有关如何处理代码异常的更多信息,请参见 ExceptionFor more information about how to handle code exceptions, see Exception.

适用于

EntitySqlException(String, Exception)

初始化 EntitySqlException 类的新实例,该类使用指定的错误消息和对作为此异常原因的内部异常的引用。Initializes a new instance of the EntitySqlException class that uses a specified error message and a reference to the inner exception that is the cause of this exception.

public:
 EntitySqlException(System::String ^ message, Exception ^ innerException);
public EntitySqlException (string message, Exception innerException);
new System.Data.EntitySqlException : string * Exception -> System.Data.EntitySqlException
Public Sub New (message As String, innerException As Exception)

参数

message
String

解释异常原因的错误消息。The error message that explains the reason for the exception.

innerException
Exception

导致当前异常的异常,或者,如果未指定任何内部异常,则为 null 引用(在 Visual Basic 中为 Nothing)。The exception that caused the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.

注解

有关如何处理代码异常的更多信息,请参见 ExceptionFor more information about how to handle code exceptions, see Exception.

适用于