Constructors
-
Db
Exception() protected Initializes a new instance of the DbException class. -
Db
Exception(Serialization protected Initializes a new instance of the DbException class with the specified serialization information and context.Info, Streaming Context) -
Db
Exception(String) protected Initializes a new instance of the DbException class with the specified error message. -
Db
Exception(String, protected 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.Exception) -
Db
Exception(String, protected Initializes a new instance of the DbException class with the specified error message and error code.Int32)
Properties
-
Is
Transient virtual Indicates whether the error represented by this DbException could be a transient error, i.e. if retrying the triggering operation may succeed without any other change. -
Sql
State virtualFor database providers which support it, contains a standard SQL 5-character return code indicating the success or failure of the database operation. The first 2 characters represent the class of the return code (e.g. error, success), while the last 3 characters represent the subclass, allowing detection of error scenarios in a database-portable way.
For database providers which don't support it, or for inapplicable error scenarios, contains null.