MediaWiki master
|
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 34 of file MWException.php.
|
final |
Definition at line 109 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 119 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 44 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 @phpcs:ignore Generic.Files.LineLength |
MessageParam|MessageSpecifier|string|int|float|list<MessageParam|MessageSpecifier|string|int|float> | ...$params See Message::params() |
Definition at line 75 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 101 of file MWException.php.
MWException::useMessageCache | ( | ) |
Can the extension use the Message class/wfMessage to get i18n-ed messages?
Definition at line 55 of file MWException.php.
Referenced by msg().