Class to expose exceptions to the client (API bots, users, admins using CLI scripts)
More...
Class to expose exceptions to the client (API bots, users, admins using CLI scripts)
- Since
- 1.28
Definition at line 40 of file MWExceptionRenderer.php.
◆ getHTML()
static MWExceptionRenderer::getHTML |
( |
Throwable | $e | ) |
|
|
static |
Format an HTML message for the given exception object.
- Parameters
-
- Returns
- string Html to output
Definition at line 215 of file MWExceptionRenderer.php.
◆ msg()
static MWExceptionRenderer::msg |
( |
| $key, |
|
|
| $fallback, |
|
|
| $params ) |
|
static |
Get a message string from i18n.
- Parameters
-
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() |
- Returns
- string Message with arguments replaced
Definition at line 252 of file MWExceptionRenderer.php.
References $fallback, and $params.
◆ output()
static MWExceptionRenderer::output |
( |
Throwable | $e, |
|
|
| $mode, |
|
|
?Throwable | $eNew = null ) |
|
static |
- Parameters
-
Throwable | $e | Original exception |
int | $mode | MWExceptionExposer::AS_* constant |
Throwable | null | $eNew | New throwable from attempting to show the first |
Definition at line 76 of file MWExceptionRenderer.php.
◆ setShowExceptionDetails()
static MWExceptionRenderer::setShowExceptionDetails |
( |
bool | $showDetails | ) |
|
|
static |
◆ shouldShowExceptionDetails()
static MWExceptionRenderer::shouldShowExceptionDetails |
( |
| ) |
|
|
static |
◆ AS_PRETTY
const MWExceptionRenderer::AS_PRETTY = 2 |
◆ AS_RAW
const MWExceptionRenderer::AS_RAW = 1 |
The documentation for this class was generated from the following file: