|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Error Handling & global info handling. More...
Collaboration diagram for ilErrorHandling:Public Member Functions | |
| __construct () | |
| getHandler () | |
| Get a handler for an error or exception. More... | |
| raiseError (string $message, ?int $code=null) | |
| getMessage () | |
| setMessage (string $a_message) | |
| appendMessage (string $a_message) | |
| handlePreWhoops (int $level, string $message, string $file, int $line) | |
| Parameter types according to PHP doc: set_error_handler. More... | |
Data Fields | |
| int | $FATAL = 1 |
| Error level 1: exit application immedietly. More... | |
| int | $WARNING = 2 |
| Error level 2: show warning page. More... | |
| int | $MESSAGE = 3 |
| Error level 3: show message in recent page. More... | |
Protected Member Functions | |
| initWhoopsHandlers () | |
| Initialize Error and Exception Handlers. More... | |
| getIlRuntime () | |
| getWhoops () | |
| isDevmodeActive () | |
| defaultHandler () | |
| devmodeHandler () | |
| addEditorSupport (PrettyPageHandler $handler) | |
| applyEditorPathTranslations (string &$file, array $pathTranslations) | |
| parseEditorPathTranslation (string $pathTranslationConfig) | |
Protected Attributes | |
| RunInterface | $whoops |
| string | $message |
| bool | $DEBUG_ENV |
Static Protected Attributes | |
| static bool | $whoops_handlers_registered = false |
Private Member Functions | |
| errorHandler (string $message, int $code, array $backtrace) | |
Private Attributes | |
| const | SENSTIVE_PARAMETER_NAMES |
Error Handling & global info handling.
when an error occured and clicking the back button to return to previous page the referer-var in session is deleted -> server error
This class is a candidate for a singleton. initHandlers could only be called once per process anyways, as it checks for static $handlers_registered.
Definition at line 37 of file class.ilErrorHandling.php.
| ilErrorHandling::__construct | ( | ) |
Definition at line 76 of file class.ilErrorHandling.php.
References initWhoopsHandlers().
Here is the call graph for this function:
|
protected |
Definition at line 349 of file class.ilErrorHandling.php.
References $handler.
| ilErrorHandling::appendMessage | ( | string | $a_message | ) |
Definition at line 245 of file class.ilErrorHandling.php.
|
protected |
Definition at line 371 of file class.ilErrorHandling.php.
|
protected |
Definition at line 268 of file class.ilErrorHandling.php.
References $DIC, exit, ilLoggingErrorSettings\getInstance(), ILIAS\UI\examples\Symbol\Glyph\Header\header(), and ilSession\set().
Referenced by getHandler().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 316 of file class.ilErrorHandling.php.
References $param.
Referenced by getHandler().
Here is the caller graph for this function:
|
private |
| list<array{"function" | string, "line"?: int, "file"?: string, "class"?: class-string,"type"?: "->"|"::", "object"?: object, "args"?: list<mixed>}> $backtrace |
Definition at line 148 of file class.ilErrorHandling.php.
References $_POST, $_SERVER, Vendor\Package\$b, $log, ilUtil\_getHttpPath(), ilSession\clear(), exit, ilSession\get(), ilUtil\redirect(), and ilSession\set().
Here is the call graph for this function:| ilErrorHandling::getHandler | ( | ) |
Get a handler for an error or exception.
Uses Whoops Pretty Page Handler in DEVMODE and the legacy ILIAS-Error handlers otherwise.
Definition at line 115 of file class.ilErrorHandling.php.
References $_SERVER, ilContext\CONTEXT_SOAP, defaultHandler(), devmodeHandler(), ilContext\getType(), and isDevmodeActive().
Here is the call graph for this function:
|
protected |
Definition at line 253 of file class.ilErrorHandling.php.
References ilRuntime\getInstance().
Referenced by initWhoopsHandlers().
Here is the call graph for this function:
Here is the caller graph for this function:| ilErrorHandling::getMessage | ( | ) |
Definition at line 235 of file class.ilErrorHandling.php.
Referenced by ILIAS\UI\Implementation\Component\Input\Field\FormInput\withInput(), and ILIAS\UI\Implementation\Component\Input\Input\withInput().
Here is the caller graph for this function:
|
protected |
Definition at line 258 of file class.ilErrorHandling.php.
Referenced by initWhoopsHandlers().
Here is the caller graph for this function:| ilErrorHandling::handlePreWhoops | ( | int | $level, |
| string | $message, | ||
| string | $file, | ||
| int | $line | ||
| ) |
Parameter types according to PHP doc: set_error_handler.
Whoops\Exception\ErrorException
Definition at line 430 of file class.ilErrorHandling.php.
|
protected |
Initialize Error and Exception Handlers.
Initializes Whoops, a logging handler and a delegate handler for the late initialisation of an appropriate error handler.
Definition at line 95 of file class.ilErrorHandling.php.
References getIlRuntime(), and getWhoops().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 263 of file class.ilErrorHandling.php.
References ILIAS\Repository\int().
Referenced by getHandler().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 378 of file class.ilErrorHandling.php.
References $parts.
| ilErrorHandling::raiseError | ( | string | $message, |
| ?int | $code = null |
||
| ) |
Definition at line 131 of file class.ilErrorHandling.php.
| ilErrorHandling::setMessage | ( | string | $a_message | ) |
Definition at line 240 of file class.ilErrorHandling.php.
|
protected |
Definition at line 53 of file class.ilErrorHandling.php.
| int ilErrorHandling::$FATAL = 1 |
Error level 1: exit application immedietly.
Definition at line 58 of file class.ilErrorHandling.php.
|
protected |
Definition at line 52 of file class.ilErrorHandling.php.
| int ilErrorHandling::$MESSAGE = 3 |
Error level 3: show message in recent page.
Definition at line 68 of file class.ilErrorHandling.php.
| int ilErrorHandling::$WARNING = 2 |
Error level 2: show warning page.
Definition at line 63 of file class.ilErrorHandling.php.
|
protected |
Definition at line 50 of file class.ilErrorHandling.php.
|
staticprotected |
Definition at line 74 of file class.ilErrorHandling.php.
|
private |
Definition at line 39 of file class.ilErrorHandling.php.