|
MediaWiki 1.43.1
|
Inherits Exception.
Inherited by ErrorPageError, FatalError, HttpError, MWContentSerializationException, MediaWiki\Api\ApiUsageException, and MediaWiki\Installer\InstallException.

Public Member Functions | |
| hasOverriddenHandler () | |
| 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. | |
| useMessageCache () | |
| Can the extension use the Message class/wfMessage to get i18n-ed messages? | |
Static Public Member Functions | |
| static | isCommandLine () |
| Check whether we are in command line mode or not to report the exception in the correct format. | |
MediaWiki exception.
Definition at line 32 of file MWException.php.
|
final |
Definition at line 105 of file MWException.php.
|
static |
Check whether we are in command line mode or not to report the exception in the correct format.
Definition at line 115 of file MWException.php.
References MW_ENTRY_POINT.
| MWException::isLoggable | ( | ) |
Whether to log this exception in the exception debug log.
Reimplemented in HttpError.
Definition at line 42 of file MWException.php.
| MWException::msg | ( | $key, | |
| $fallback, | |||
| $params ) |
Get a message from i18n.
| string | $key | Message name |
| string | $fallback | Default message if the message cache can't be called by the exception |
| mixed | ...$params To pass to wfMessage() |
Definition at line 71 of file MWException.php.
References $fallback, $params, useMessageCache(), wfMessage(), and wfMsgReplaceArgs().
Referenced by ErrorPageError\__construct(), ErrorPageError\getMessageObject(), ErrorPageError\report(), and UserNotLoggedIn\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 HttpError.
Definition at line 97 of file MWException.php.
| MWException::useMessageCache | ( | ) |
Can the extension use the Message class/wfMessage to get i18n-ed messages?
Definition at line 53 of file MWException.php.
Referenced by msg().