Edit

Share via


EntitySqlException Constructors

Definition

Initializes a new instance of EntitySqlException.

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.

Remarks

For more information about how to handle code exceptions, see Exception.

EntitySqlException()

Initializes a new instance of EntitySqlException.

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

Remarks

For more information about how to handle code exceptions, see Exception.

Applies to

EntitySqlException(String)

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)

Parameters

message
String

The message that describes the error.

Remarks

For more information about how to handle code exceptions, see Exception.

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(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)

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.

Remarks

For more information about how to handle code exceptions, see Exception.

Applies to