DbException Constructor

 

Initializes a new instance of the DbException class.

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

NameDescription
System_CAPS_protmethodDbException()

Initializes a new instance of the DbException class.

System_CAPS_protmethodDbException(SerializationInfo, StreamingContext)

Initializes a new instance of the DbException class with the specified serialization information and context.

System_CAPS_protmethodDbException(String)

Initializes a new instance of the DbException class with the specified error message.

System_CAPS_protmethodDbException(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.

System_CAPS_protmethodDbException(String, Int32)

Initializes a new instance of the DbException class with the specified error message and error code.

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

Return to top
Show: