MediaWiki
master
|
Class to expose exceptions to the client (API bots, users, admins using CLI scripts) More...
Static Public Member Functions | |
static | getHTML (Throwable $e) |
Format an HTML message for the given exception object. More... | |
static | msg ( $key, $fallback,... $params) |
Get a message string from i18n. More... | |
static | output (Throwable $e, $mode, Throwable $eNew=null) |
static | setShowExceptionDetails (bool $showDetails) |
static | shouldShowExceptionDetails () |
Public Attributes | |
const | AS_PRETTY = 2 |
const | AS_RAW = 1 |
Class to expose exceptions to the client (API bots, users, admins using CLI scripts)
Definition at line 36 of file MWExceptionRenderer.php.
|
static |
Format an HTML message for the given exception object.
Throwable | $e |
Definition at line 213 of file MWExceptionRenderer.php.
References MWExceptionHandler\getLogMessage(), MWExceptionHandler\getRedactedTraceAsString(), and MWExceptionHandler\getURL().
Referenced by MediaWiki\run().
|
static |
Get a message string 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 252 of file MWExceptionRenderer.php.
References $fallback.
|
static |
Throwable | $e | Original exception |
int | $mode | MWExceptionExposer::AS_* constant |
Throwable | null | $eNew | New throwable from attempting to show the first |
Definition at line 71 of file MWExceptionRenderer.php.
References MWExceptionHandler\getLogMessage(), MWExceptionHandler\getPublicLogMessage(), and MWExceptionHandler\getRedactedTraceAsString().
Referenced by MWExceptionHandler\report().
|
static |
bool | $showDetails |
Definition at line 62 of file MWExceptionRenderer.php.
|
static |
Definition at line 54 of file MWExceptionRenderer.php.
Referenced by ApiMain\errorMessagesFromException(), MediaWiki\ResourceLoader\ResourceLoader\formatExceptionNoComment(), MWException\getHTML(), MWException\getText(), and MediaWiki\Rest\EntryPoint\main().
const MWExceptionRenderer::AS_PRETTY = 2 |
Definition at line 38 of file MWExceptionRenderer.php.
Referenced by MWExceptionHandler\report().
const MWExceptionRenderer::AS_RAW = 1 |
Definition at line 37 of file MWExceptionRenderer.php.
Referenced by MWExceptionHandler\report().