MediaWiki
REL1_19
|
Public Member Functions | |
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. | |
getLogMessage () | |
Return the requested URL and point to file and line number from which the exception occured. | |
getPageTitle () | |
Return titles of this error page. | |
getText () | |
If $wgShowExceptionDetails is true, return a text message with a backtrace to the error. | |
msg ($key, $fallback) | |
Get a message from i18n. | |
report () | |
Output a report about the exception and takes care of formatting. | |
reportHTML () | |
Output the exception report using HTML. | |
runHooks ($name, $args=array()) | |
Run hook to allow extensions to modify the text of the exception. | |
useMessageCache () | |
Can the extension use wfMsg() to get i18n messages ? | |
useOutputPage () | |
Should the exception use $wgOut to output the error ? | |
Static Public Member Functions | |
static | isCommandLine () |
MediaWiki exception.
Definition at line 17 of file Exception.php.
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 in FatalError, DBConnectionError, and DBError.
Definition at line 105 of file Exception.php.
References $wgShowExceptionDetails.
Referenced by reportHTML(), and wfStreamThumb().
Return the requested URL and point to file and line number from which the exception occured.
Reimplemented in DBQueryError, and DBConnectionError.
Definition at line 150 of file Exception.php.
Referenced by report().
Return titles of this error page.
Reimplemented in DBQueryError, and DBConnectionError.
Definition at line 140 of file Exception.php.
References msg().
Referenced by reportHTML().
If $wgShowExceptionDetails is true, return a text message with a backtrace to the error.
Reimplemented in FatalError, and DBError.
Definition at line 124 of file Exception.php.
References $wgShowExceptionDetails.
Referenced by DatabaseInstaller\doUpgrade(), CreateAndPromote\execute(), ChangePassword\execute(), PPFuzzTester\execute(), and report().
static MWException::isCommandLine | ( | ) | [static] |
Definition at line 217 of file Exception.php.
Referenced by MWExceptionHandler\report().
MWException::msg | ( | $ | key, |
$ | fallback | ||
) |
Get a message from i18n.
$key | String: message name |
$fallback | String: default message if the message cache can't be called by the exception The function also has other parameters that are arguments for the message |
Reimplemented in DBConnectionError.
Definition at line 88 of file Exception.php.
References $fallback, useMessageCache(), wfMsgNoTrans(), and wfMsgReplaceArgs().
Referenced by ErrorPageError\__construct(), getPageTitle(), DBQueryError\getPageTitle(), DBQueryError\getSQL(), and ErrorPageError\report().
Output a report about the exception and takes care of formatting.
It will be either HTML or plain text based on isCommandLine().
Reimplemented in ThrottledError, PermissionsError, BadTitleError, and ErrorPageError.
Definition at line 199 of file Exception.php.
References getLogMessage(), getText(), MWExceptionHandler\printError(), reportHTML(), and wfDebugLog().
Output the exception report using HTML.
Reimplemented in HttpError, and DBConnectionError.
Definition at line 170 of file Exception.php.
References $wgOut, echo, getHTML(), getPageTitle(), runHooks(), and useOutputPage().
Referenced by report().
MWException::runHooks | ( | $ | name, |
$ | args = array() |
||
) |
Run hook to allow extensions to modify the text of the exception.
$name | String: class name of the exception |
$args | Array: arguments to pass to the callback functions |
Definition at line 52 of file Exception.php.
References $result, and $wgExceptionHooks.
Referenced by reportHTML().
Can the extension use wfMsg() to get i18n messages ?
Definition at line 33 of file Exception.php.
References $wgLang.
Referenced by DBQueryError\getContentMessage(), msg(), DBConnectionError\msg(), and useOutputPage().
Should the exception use $wgOut to output the error ?
Reimplemented in DBConnectionError.
Definition at line 22 of file Exception.php.
References useMessageCache().
Referenced by reportHTML().