|
MediaWiki
REL1_19
|
Database error base class. More...


Public Member Functions | |
| __construct (DatabaseBase &$db, $error) | |
| Construct a database error. | |
| getHTML () | |
| getText () | |
Public Attributes | |
| $db | |
Protected Member Functions | |
| getContentMessage ($html) | |
Database error base class.
Definition at line 7 of file DatabaseError.php.
| DBError::__construct | ( | DatabaseBase &$ | db, |
| $ | error | ||
| ) |
Construct a database error.
| $db | DatabaseBase object which threw the error |
| $error | String A simple error message to be used for debugging |
Reimplemented in DBConnectionError.
Definition at line 19 of file DatabaseError.php.
References $db.
| DBError::getContentMessage | ( | $ | html | ) | [protected] |
| $html | string |
Reimplemented in DBQueryError.
Definition at line 28 of file DatabaseError.php.
Referenced by getHTML(), and getText().

| DBError::getHTML | ( | ) |
Reimplemented from MWException.
Reimplemented in DBConnectionError.
Definition at line 54 of file DatabaseError.php.
References $wgShowDBErrorBacktrace, and getContentMessage().

| DBError::getText | ( | ) |
Reimplemented from MWException.
Definition at line 39 of file DatabaseError.php.
References $wgShowDBErrorBacktrace, and getContentMessage().
Referenced by MysqlInstaller\setupUser().


| DBError::$db |
Definition at line 12 of file DatabaseError.php.
Referenced by __construct().