MediaWiki  1.28.0
DBError Class Reference

Database error base class. More...

Inheritance diagram for DBError:
Collaboration diagram for DBError:

Public Member Functions

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

Public Attributes

IDatabase null $db
 

Detailed Description

Database error base class.

Definition at line 26 of file DBError.php.

Constructor & Destructor Documentation

DBError::__construct ( IDatabase  $db = null,
  $error 
)

Construct a database error.

Parameters
IDatabase$dbObject which threw the error
string$errorA simple error message to be used for debugging

Definition at line 35 of file DBError.php.

References $db.

Member Data Documentation

IDatabase null DBError::$db

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