MediaWiki
1.23.5
|
Public Member Functions | |
__construct (DatabaseBase $db=null, $error='unknown error') | |
getHTML () | |
isLoggable () | |
msg ( $key, $fallback) | |
reportHTML () | |
Output the exception report using HTML. More... | |
searchForm () | |
useOutputPage () | |
Public Member Functions inherited from DBExpectedError | |
getText () | |
Public Member Functions inherited from MWException | |
getLogId () | |
Get a the ID for this error. More... | |
getLogMessage () | |
Return the requested URL and point to file and line number from which the exception occurred. More... | |
getPageTitle () | |
Return the title of the page when reporting this error in a HTTP response. More... | |
report () | |
Output a report about the exception and takes care of formatting. More... | |
runHooks ( $name, $args=array()) | |
Run hook to allow extensions to modify the text of the exception. More... | |
useMessageCache () | |
Can the extension use the Message class/wfMessage to get i18n-ed messages? More... | |
Public Attributes | |
string | $error |
Error text *. More... | |
Public Attributes inherited from DBError | |
DatabaseBase | $db |
Protected Member Functions | |
getTextContent () | |
Protected Member Functions inherited from DBExpectedError | |
getHTMLContent () | |
Private Member Functions | |
fileCachedPage () | |
Additional Inherited Members | |
Static Public Member Functions inherited from MWException | |
static | isCommandLine () |
Check whether we are in command line mode or not to report the exception in the correct format. More... | |
Definition at line 98 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 105 of file DatabaseError.php.
References DBError\$db, and $error.
|
private |
Definition at line 289 of file DatabaseError.php.
References $t, and RequestContext\getMain().
Referenced by reportHTML().
DBConnectionError::getHTML | ( | ) |
Reimplemented from DBExpectedError.
Definition at line 158 of file DatabaseError.php.
References $html, array(), Html\element(), global, msg(), searchForm(), and MessageCache\singleton().
|
protected |
Reimplemented from DBExpectedError.
Definition at line 197 of file DatabaseError.php.
References 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 133 of file DatabaseError.php.
References $args, $fallback, $wgLang, global, MWException\useMessageCache(), and wfMsgReplaceArgs().
Referenced by getHTML(), reportHTML(), and searchForm().
DBConnectionError::reportHTML | ( | ) |
Output the exception report using HTML.
Reimplemented from MWException.
Definition at line 212 of file DatabaseError.php.
References $cache, $e, array(), fileCachedPage(), global, and msg().
DBConnectionError::searchForm | ( | ) |
DBConnectionError::useOutputPage | ( | ) |
string DBConnectionError::$error |