DBConcurrencyException Constructors

Definition

Initializes a new instance of the DBConcurrencyException class.

Overloads

DBConcurrencyException()

Initializes a new instance of the DBConcurrencyException class.

DBConcurrencyException(String)

Initializes a new instance of the DBConcurrencyException class.

DBConcurrencyException(String, Exception)

Initializes a new instance of the DBConcurrencyException class.

DBConcurrencyException(String, Exception, DataRow[])

Initializes a new instance of the DBConcurrencyException class.

DBConcurrencyException()

Initializes a new instance of the DBConcurrencyException class.

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

Remarks

The parameterless constructor initializes any fields to their default values.

See also

Applies to

DBConcurrencyException(String)

Initializes a new instance of the DBConcurrencyException class.

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

Parameters

message
String

The text string describing the details of the exception.

See also

Applies to

DBConcurrencyException(String, Exception)

Initializes a new instance of the DBConcurrencyException class.

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

Parameters

message
String

The text string describing the details of the exception.

inner
Exception

A reference to an inner exception.

Remarks

You can create a new exception that catches an earlier exception. The code that handles the second exception can use the additional information from the earlier exception, also called an inner exception, to examine the cause of the initial error.

See also

Applies to

DBConcurrencyException(String, Exception, DataRow[])

Initializes a new instance of the DBConcurrencyException class.

public:
 DBConcurrencyException(System::String ^ message, Exception ^ inner, cli::array <System::Data::DataRow ^> ^ dataRows);
public DBConcurrencyException (string? message, Exception? inner, System.Data.DataRow[]? dataRows);
public DBConcurrencyException (string message, Exception inner, System.Data.DataRow[] dataRows);
new System.Data.DBConcurrencyException : string * Exception * System.Data.DataRow[] -> System.Data.DBConcurrencyException
Public Sub New (message As String, inner As Exception, dataRows As DataRow())

Parameters

message
String

The error message that explains the reason for this exception.

inner
Exception

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

dataRows
DataRow[]

An array containing the DataRow objects whose update failure generated this exception.

See also

Applies to