Inherits MWException.
Inherited by DBConnectionError, DBQueryError, and DBUnexpectedError.
Public Member Functions | |
| __construct (DatabaseBase &$db, $error) | |
| Construct a database error. | |
| getText () | |
| If $wgShowExceptionDetails is true, return a text message with a backtrace to the error. | |
Public Attributes | |
| $db | |
Definition at line 2498 of file Database.php.
| DBError::__construct | ( | DatabaseBase &$ | db, | |
| $ | error | |||
| ) |
Construct a database error.
| $db | Database object which threw the error | |
| $error | A simple error message to be used for debugging |
Reimplemented in DBConnectionError.
Definition at line 2506 of file Database.php.
| DBError::getText | ( | ) |
If $wgShowExceptionDetails is true, return a text message with a backtrace to the error.
Reimplemented from MWException.
Reimplemented in DBQueryError.
Definition at line 2511 of file Database.php.
References $s, and $wgShowDBErrorBacktrace.
| DBError::$db |
Definition at line 2499 of file Database.php.
1.5.9