ILIAS
trunk Revision v11.0_alpha-1811-gd2d5443e411
|
Error Handling & global info handling. More...
Public Member Functions | |
__construct () | |
getHandler () | |
Get a handler for an error or exception. More... | |
raiseError (string $message, ?int $code) | |
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().
|
protected |
Definition at line 349 of file class.ilErrorHandling.php.
References applyEditorPathTranslations(), and parseEditorPathTranslation().
Referenced by devmodeHandler().
ilErrorHandling::appendMessage | ( | string | $a_message | ) |
Definition at line 245 of file class.ilErrorHandling.php.
References getMessage().
|
protected |
Definition at line 371 of file class.ilErrorHandling.php.
Referenced by addEditorSupport().
|
protected |
Definition at line 268 of file class.ilErrorHandling.php.
References $DIC, $r, exit, ilLoggingErrorSettings\getInstance(), ILIAS\UI\examples\Symbol\Glyph\Header\header(), ilSession\set(), ilLoggingErrorFileStorage\withExclusionList(), and ilLoggingErrorFileStorage\write().
Referenced by getHandler().
|
protected |
Definition at line 316 of file class.ilErrorHandling.php.
References $param, and addEditorSupport().
Referenced by getHandler().
|
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 $_SERVER, Vendor\Package\$b, $log, $message, ilUtil\_getHttpPath(), ilSession\clear(), exit, ilSession\get(), ilUtil\redirect(), and ilSession\set().
Referenced by raiseError().
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().
|
protected |
Definition at line 253 of file class.ilErrorHandling.php.
References ilRuntime\getInstance().
Referenced by initWhoopsHandlers().
ilErrorHandling::getMessage | ( | ) |
Definition at line 235 of file class.ilErrorHandling.php.
References $message.
Referenced by appendMessage(), and ilObjCourseGUI\updateInfoObject().
|
protected |
Definition at line 258 of file class.ilErrorHandling.php.
Referenced by initWhoopsHandlers().
ilErrorHandling::handlePreWhoops | ( | int | $level, |
string | $message, | ||
string | $file, | ||
int | $line | ||
) |
Parameter types according to PHP doc: set_error_handler.
Definition at line 430 of file class.ilErrorHandling.php.
References isDevmodeActive().
|
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().
|
protected |
Definition at line 263 of file class.ilErrorHandling.php.
References ILIAS\Repository\int().
Referenced by getHandler(), and handlePreWhoops().
|
protected |
Definition at line 378 of file class.ilErrorHandling.php.
References $message, and $parts.
Referenced by addEditorSupport().
ilErrorHandling::raiseError | ( | string | $message, |
?int | $code | ||
) |
Definition at line 131 of file class.ilErrorHandling.php.
References errorHandler().
ilErrorHandling::setMessage | ( | string | $a_message | ) |
Definition at line 240 of file class.ilErrorHandling.php.
Referenced by ilObjCourseGUI\updateInfoObject().
|
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.
Referenced by errorHandler(), getMessage(), and parseEditorPathTranslation().
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.