|
ILIAS
trunk Revision v12.0_alpha-1221-g4e438232683
|
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... | |
| getRuntime () | |
| getWhoops () | |
| isDevmodeActive () | |
| defaultHandler () | |
| devmodeHandler () | |
| addEditorSupport (PrettyPageHandler $handler) | |
| applyEditorPathTranslations (string &$file, array $pathTranslations) | |
| parseEditorPathTranslation (string $pathTranslationConfig) | |
Protected Attributes | |
| RunInterface | $whoops |
| string | $message |
Static Protected Attributes | |
| static bool | $whoops_handlers_registered = false |
| Are the whoops error handlers already registered? More... | |
Private Member Functions | |
| errorHandler (string $message, int $code, array $backtrace) | |
Private Attributes | |
| const array | 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 65 of file class.ilErrorHandling.php.
References initWhoopsHandlers().
Here is the call graph for this function:
|
protected |
Definition at line 313 of file class.ilErrorHandling.php.
References $handler.
| ilErrorHandling::appendMessage | ( | string | $a_message | ) |
Definition at line 205 of file class.ilErrorHandling.php.
|
protected |
Definition at line 335 of file class.ilErrorHandling.php.
|
protected |
Definition at line 228 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 280 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 138 of file class.ilErrorHandling.php.
References $_POST, $_SERVER, $log, ilUtil\_getHttpPath(), ilSession\clear(), 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 105 of file class.ilErrorHandling.php.
References $_SERVER, ilContext\CONTEXT_SOAP, defaultHandler(), devmodeHandler(), ilContext\getType(), and isDevmodeActive().
Here is the call graph for this function:| ilErrorHandling::getMessage | ( | ) |
Definition at line 195 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 213 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:
|
protected |
Definition at line 218 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 394 of file class.ilErrorHandling.php.
|
protected |
Initialize Error and Exception Handlers.
Initializes Whoops, a logging handler and a delegate handler for the late initialization of an appropriate error handler.
Definition at line 83 of file class.ilErrorHandling.php.
References getRuntime(), 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 223 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 342 of file class.ilErrorHandling.php.
References $parts.
| ilErrorHandling::raiseError | ( | string | $message, |
| ?int | $code = null |
||
| ) |
Definition at line 121 of file class.ilErrorHandling.php.
| ilErrorHandling::setMessage | ( | string | $a_message | ) |
Definition at line 200 of file class.ilErrorHandling.php.
| int ilErrorHandling::$FATAL = 1 |
Error level 1: exit application immedietly.
Definition at line 59 of file class.ilErrorHandling.php.
|
protected |
Definition at line 57 of file class.ilErrorHandling.php.
| int ilErrorHandling::$MESSAGE = 3 |
Error level 3: show message in recent page.
Definition at line 63 of file class.ilErrorHandling.php.
| int ilErrorHandling::$WARNING = 2 |
Error level 2: show warning page.
Definition at line 61 of file class.ilErrorHandling.php.
|
protected |
Definition at line 56 of file class.ilErrorHandling.php.
|
staticprotected |
Are the whoops error handlers already registered?
Definition at line 54 of file class.ilErrorHandling.php.
|
private |
Definition at line 40 of file class.ilErrorHandling.php.