MediaWiki  1.34.0
Wikimedia\Rdbms\DBError Class Reference

Database error base class. More...

Inheritance diagram for Wikimedia\Rdbms\DBError:
Collaboration diagram for Wikimedia\Rdbms\DBError:

Public Member Functions

 __construct (IDatabase $db=null, $error, $prev=null)
 Construct a database error. More...
 

Public Attributes

IDatabase null $db
 

Detailed Description

Database error base class.

Definition at line 30 of file DBError.php.

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\Rdbms\DBError::__construct ( IDatabase  $db = null,
  $error,
  $prev = null 
)

Construct a database error.

Parameters
IDatabase | null$dbObject which threw the error
string$errorA simple error message to be used for debugging
\\Exception | \\Throwable | null$prevPrevious exception

Definition at line 40 of file DBError.php.

References Wikimedia\Rdbms\DBError\$db.

Member Data Documentation

◆ $db


The documentation for this class was generated from the following file: