MediaWiki REL1_27
|
Public Member Functions | |
__construct (DatabaseBase $db=null, $error='unknown error') | |
getHTML () | |
isLoggable () | |
msg ( $key, $fallback) | |
reportHTML () | |
Output the exception report using HTML. | |
useOutputPage () | |
![]() | |
getPageTitle () | |
Return the title of the page when reporting this error in a HTTP response. | |
getText () | |
![]() | |
report () | |
Output a report about the exception and takes care of formatting. | |
runHooks ( $name, $args=[]) | |
Run hook to allow extensions to modify the text of the exception. | |
useMessageCache () | |
Can the extension use the Message class/wfMessage to get i18n-ed messages? | |
Public Attributes | |
string | $error |
Error text. | |
![]() | |
DatabaseBase | $db |
Protected Member Functions | |
getTextContent () | |
![]() | |
getHTMLContent () | |
Private Member Functions | |
fileCachedPage () | |
Additional Inherited Members | |
![]() | |
static | isCommandLine () |
Check whether we are in command line mode or not to report the exception in the correct format. | |
Definition at line 103 of file DatabaseError.php.
DBConnectionError::__construct | ( | DatabaseBase | $db = null , |
$error = 'unknown error' |
|||
) |
DatabaseBase | $db | Object throwing the error |
string | $error | Error text |
Reimplemented from DBError.
Definition at line 111 of file DatabaseError.php.
References DBError\$db, and $error.
|
private |
Definition at line 247 of file DatabaseError.php.
References $cache, $context, $t, RequestContext\getMain(), msg(), and Title\newFromText().
Referenced by reportHTML().
DBConnectionError::getHTML | ( | ) |
Reimplemented from DBExpectedError.
Definition at line 160 of file DatabaseError.php.
References $html, $wgShowDBErrorBacktrace, $wgShowHostnames, $wgShowSQLErrors, Html\element(), global, msg(), and MessageCache\singleton().
|
protected |
Reimplemented from DBExpectedError.
Definition at line 198 of file DatabaseError.php.
References $wgShowHostnames, $wgShowSQLErrors, and global.
DBConnectionError::isLoggable | ( | ) |
DBConnectionError::msg | ( | $key, | |
$fallback | |||
) |
string | $key | |
string | $fallback | Unescaped alternative error text in case the message cache cannot be used. Can contain parameters as in regular messages, that should be passed as additional parameters. |
Reimplemented from MWException.
Definition at line 139 of file DatabaseError.php.
References $args, $fallback, MWException\useMessageCache(), wfMessage(), and wfMsgReplaceArgs().
Referenced by fileCachedPage(), getHTML(), and reportHTML().
DBConnectionError::reportHTML | ( | ) |
Output the exception report using HTML.
Reimplemented from MWException.
Definition at line 213 of file DatabaseError.php.
References $cache, $e, $wgUseFileCache, fileCachedPage(), global, and msg().
DBConnectionError::useOutputPage | ( | ) |
string DBConnectionError::$error |