MediaWiki REL1_34
|
An exception class which represents an error in the script. More...
Public Member Functions | |
__construct ( $messageName, $params=[]) | |
getMessageName () | |
getScriptTraceHtml ( $options=[]) | |
Get the backtrace as HTML, or false if there is none available. | |
toStatus () | |
Public Member Functions inherited from 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. | |
getPageTitle () | |
Return the title of the page when reporting this error in a HTTP response. | |
getText () | |
Get the text to display when reporting the error on the command line. | |
isLoggable () | |
Whether to log this exception in the exception debug log. | |
msg ( $key, $fallback,... $params) | |
Get a message from i18n. | |
report () | |
Output a report about the exception and takes care of formatting. | |
reportHTML () | |
Output the exception report using HTML. | |
useMessageCache () | |
Can the extension use the Message class/wfMessage to get i18n-ed messages? | |
useOutputPage () | |
Should the exception use $wgOut to output the error? | |
Public Attributes | |
array | $messageArgs |
string | $messageName |
array | $params |
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. | |
An exception class which represents an error in the script.
This does not normally abort the request, instead it is caught and shown to the user.
Definition at line 136 of file Common.php.
ScribuntoException::__construct | ( | $messageName, | |
$params = [] ) |
string | $messageName | |
array | $params |
Definition at line 156 of file Common.php.
References $messageName, $params, and wfMessage().
ScribuntoException::getMessageName | ( | ) |
Definition at line 191 of file Common.php.
References $messageName.
Referenced by ApiScribuntoConsole\runConsole(), Scribunto_LuaStandaloneInterpreterTest\testIOErrorExit(), and Scribunto_LuaStandaloneInterpreterTest\testIOErrorSignal().
ScribuntoException::getScriptTraceHtml | ( | $options = [] | ) |
Get the backtrace as HTML, or false if there is none available.
array | $options |
Reimplemented in Scribunto_LuaError.
Definition at line 206 of file Common.php.
Referenced by ScribuntoHooks\invokeHook(), ApiScribuntoConsole\runConsole(), and Scribunto_LuaCommonTest\testNonUtf8Errors().
ScribuntoException::toStatus | ( | ) |
Definition at line 195 of file Common.php.
Referenced by Scribunto_LuaModule\validate().
array ScribuntoException::$messageArgs |
Definition at line 145 of file Common.php.
string ScribuntoException::$messageName |
Definition at line 140 of file Common.php.
Referenced by __construct(), and getMessageName().
array ScribuntoException::$params |
Definition at line 150 of file Common.php.
Referenced by __construct().