Public Member Functions | |
| __construct (Database &$db, $error= 'unknown error') | |
| Construct a database error. | |
| useOutputPage () | |
| Should the exception use $wgOut to output the error ? | |
| useMessageCache () | |
| Can the extension use wfMsg() to get i18n messages ? | |
| getText () | |
| If $wgShowExceptionDetails is true, return a text message with a backtrace to the error. | |
| getLogMessage () | |
| Return the requested URL and point to file and line number from which the exception occured. | |
| getPageTitle () | |
| getHTML () | |
| If $wgShowExceptionDetails is true, return a HTML message with a backtrace to the error, otherwise show a message to ask to set it to true to show that information. | |
| searchForm () | |
| fileCachedPage () | |
| htmlBodyOnly () | |
| headers handled by subclass? | |
Public Attributes | |
| $error | |
Definition at line 2514 of file Database.php.
| DBConnectionError::__construct | ( | Database &$ | db, | |
| $ | error = 'unknown error' | |||
| ) |
| DBConnectionError::fileCachedPage | ( | ) |
Definition at line 2648 of file Database.php.
References $t, $title, $wgLang, $wgOut, $wgTitle, Title::newFromText(), and Title::newFromURL().
Referenced by getHTML().
| DBConnectionError::getHTML | ( | ) |
If $wgShowExceptionDetails is true, return a HTML message with a backtrace to the error, otherwise show a message to ask to set it to true to show that information.
Reimplemented from MWException.
Definition at line 2555 of file Database.php.
References $text, $wgLang, $wgMessageCache, $wgUseFileCache, fileCachedPage(), MWException::htmlFooter(), MWException::htmlHeader(), and searchForm().
| DBConnectionError::getLogMessage | ( | ) |
Return the requested URL and point to file and line number from which the exception occured.
Reimplemented from MWException.
Definition at line 2540 of file Database.php.
| DBConnectionError::getPageTitle | ( | ) |
Reimplemented from MWException.
Definition at line 2545 of file Database.php.
References $wgLang, and $wgSitename.
| DBConnectionError::getText | ( | ) |
If $wgShowExceptionDetails is true, return a text message with a backtrace to the error.
Reimplemented from MWException.
Definition at line 2536 of file Database.php.
| DBConnectionError::htmlBodyOnly | ( | ) |
headers handled by subclass?
Reimplemented from MWException.
Definition at line 2672 of file Database.php.
| DBConnectionError::searchForm | ( | ) |
Definition at line 2610 of file Database.php.
References $wgInputEncoding, $wgLang, $wgServer, and $wgSitename.
Referenced by getHTML().
| DBConnectionError::useMessageCache | ( | ) |
Can the extension use wfMsg() to get i18n messages ?
Reimplemented from MWException.
Definition at line 2531 of file Database.php.
| DBConnectionError::useOutputPage | ( | ) |
Should the exception use $wgOut to output the error ?
Reimplemented from MWException.
Definition at line 2526 of file Database.php.
| DBConnectionError::$error |
1.5.9