Public Member Functions | |
__construct (DatabaseBase &$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 ? | |
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 2524 of file Database.php.
DBConnectionError::__construct | ( | DatabaseBase &$ | db, | |
$ | error = 'unknown error' | |||
) |
DBConnectionError::fileCachedPage | ( | ) |
Definition at line 2653 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 2561 of file Database.php.
References $wgLang, $wgMessageCache, $wgShowDBErrorBacktrace, $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 2546 of file Database.php.
DBConnectionError::getPageTitle | ( | ) |
Reimplemented from MWException.
Definition at line 2551 of file Database.php.
References $wgLang, and $wgSitename.
DBConnectionError::htmlBodyOnly | ( | ) |
headers handled by subclass?
Reimplemented from MWException.
Definition at line 2677 of file Database.php.
DBConnectionError::searchForm | ( | ) |
Definition at line 2617 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 2541 of file Database.php.
DBConnectionError::useOutputPage | ( | ) |
Should the exception use $wgOut to output the error ?
Reimplemented from MWException.
Definition at line 2536 of file Database.php.
DBConnectionError::$error |