Inherited by ConfEditorParseError, DBError, ErrorPageError, FatalError, and PasswordError.
Public Member Functions | |
useOutputPage () | |
Should the exception use $wgOut to output the error ? | |
useMessageCache () | |
Can the extension use wfMsg() to get i18n messages ? | |
runHooks ($name, $args=array()) | |
Run hook to allow extensions to modify the text of the exception. | |
msg ($key, $fallback) | |
Get a message from i18n. | |
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. | |
getText () | |
If $wgShowExceptionDetails is true, return a text message with a backtrace to the error. | |
getPageTitle () | |
getLogMessage () | |
Return the requested URL and point to file and line number from which the exception occured. | |
reportHTML () | |
Output the exception report using HTML. | |
report () | |
Output a report about the exception and takes care of formatting. | |
htmlHeader () | |
Send headers and output the beginning of the html page if not using $wgOut to output the exception. | |
htmlFooter () | |
print the end of the html page if not using $wgOut. | |
htmlBodyOnly () | |
headers handled by subclass? | |
Static Public Member Functions | |
static | isCommandLine () |
Definition at line 10 of file Exception.php.
MWException::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 in DBConnectionError, DBQueryError, and FatalError.
Definition at line 88 of file Exception.php.
References $wgShowExceptionDetails.
Referenced by reportHTML(), and wfThumbMain().
MWException::getLogMessage | ( | ) |
Return the requested URL and point to file and line number from which the exception occured.
Reimplemented in DBConnectionError, and DBQueryError.
Definition at line 132 of file Exception.php.
References $url, and $wgRequest.
Referenced by report().
MWException::getPageTitle | ( | ) |
Reimplemented in DBConnectionError, and DBQueryError.
Definition at line 117 of file Exception.php.
References $wgSitename, useMessageCache(), and wfMsg().
Referenced by htmlHeader(), and reportHTML().
MWException::getText | ( | ) |
If $wgShowExceptionDetails is true, return a text message with a backtrace to the error.
Reimplemented in DBError, DBQueryError, and FatalError.
Definition at line 105 of file Exception.php.
References $wgShowExceptionDetails.
Referenced by PPFuzzTester::execute(), CreateAndPromote::execute(), ChangePassword::execute(), and report().
MWException::htmlBodyOnly | ( | ) |
headers handled by subclass?
Reimplemented in DBConnectionError.
Definition at line 229 of file Exception.php.
Referenced by reportHTML().
MWException::htmlFooter | ( | ) |
print the end of the html page if not using $wgOut.
Definition at line 222 of file Exception.php.
Referenced by DBConnectionError::getHTML(), and reportHTML().
MWException::htmlHeader | ( | ) |
Send headers and output the beginning of the html page if not using $wgOut to output the exception.
Definition at line 199 of file Exception.php.
References $title, $wgLogo, $wgOutputEncoding, $wgSitename, and getPageTitle().
Referenced by DBConnectionError::getHTML(), and reportHTML().
static MWException::isCommandLine | ( | ) | [static] |
MWException::msg | ( | $ | key, | |
$ | fallback | |||
) |
Get a message from i18n.
String | $key message name | |
String | $fallback 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 |
Definition at line 72 of file Exception.php.
References $fallback, useMessageCache(), wfMsgReal(), and wfMsgReplaceArgs().
Referenced by ErrorPageError::__construct(), DBQueryError::getPageTitle(), DBQueryError::getSQL(), and ErrorPageError::report().
MWException::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 ErrorPageError.
Definition at line 183 of file Exception.php.
References getLogMessage(), getText(), reportHTML(), wfDebugLog(), and wfPrintError().
MWException::reportHTML | ( | ) |
Output the exception report using HTML.
Definition at line 150 of file Exception.php.
References $wgOut, getHTML(), getPageTitle(), htmlBodyOnly(), htmlFooter(), htmlHeader(), runHooks(), and useOutputPage().
Referenced by report().
MWException::runHooks | ( | $ | name, | |
$ | args = array() | |||
) |
Run hook to allow extensions to modify the text of the exception.
String | $name class name of the exception | |
Array | $args arguments to pass to the callback functions |
Definition at line 43 of file Exception.php.
References $name, $result, and $wgExceptionHooks.
Referenced by reportHTML().
MWException::useMessageCache | ( | ) |
Can the extension use wfMsg() to get i18n messages ?
Reimplemented in DBConnectionError.
Definition at line 26 of file Exception.php.
References $wgLang.
Referenced by DBQueryError::getHTML(), getPageTitle(), DBQueryError::getText(), msg(), and useOutputPage().
MWException::useOutputPage | ( | ) |
Should the exception use $wgOut to output the error ?
Reimplemented in DBConnectionError.
Definition at line 15 of file Exception.php.
References useMessageCache().
Referenced by reportHTML().