Share via


EntitySqlException Constructors

Definition

Overloads

EntitySqlException()

Initializes a new instance of EntitySqlException.

EntitySqlException(String)

Initializes a new instance of EntitySqlException with a specialized error message.

EntitySqlException(String, Exception)

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.

EntitySqlException()

Initializes a new instance of EntitySqlException.

public EntitySqlException ();
Public Sub New ()

Applies to

EntitySqlException(String)

Initializes a new instance of EntitySqlException with a specialized error message.

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

Parameters

message
String

The message that describes the error.

Applies to

EntitySqlException(String, Exception)

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 (string message, Exception innerException);
new System.Data.Entity.Core.EntitySqlException : string * Exception -> System.Data.Entity.Core.EntitySqlException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The error message that explains the reason for the exception.

innerException
Exception

The exception that caused the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.

Applies to