The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
DbException Constructor (String^, Int32)
.NET Framework (current version)
Initializes a new instance of the DbException class with the specified error message and error code.
Assembly: System.Data (in System.Data.dll)
Parameters
- message
-
Type:
System::String^
The error message that explains the reason for the exception.
- errorCode
-
Type:
System::Int32
The error code for the exception.
The DbException class is an abstract class used as the base class for provider-specific exception class implementations.
.NET Framework
Available since 2.0
Windows Phone Silverlight
Available since 7.1
Available since 2.0
Windows Phone Silverlight
Available since 7.1
Show: