Export (0) Print
Expand All

DbException Constructor (String, Exception)

Initializes a new instance of the DbException class with the specified error message and a reference to the inner exception that is the cause of this exception.

Namespace:  System.Data.Common
Assembly:  System.Data (in System.Data.dll)

protected DbException(
	string message,
	Exception innerException
)

Parameters

message
Type: System.String

The error message string.

innerException
Type: System.Exception

The inner exception reference.

The DbException class is an abstract class used as the base class for provider-specific exception class implementations.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0, 2.0
Show:
© 2015 Microsoft