|
ILIAS
release_8 Revision v8.24
|
Error Handling & global info handling uses PEAR error class. More...
Inheritance diagram for ilErrorHandling:
Collaboration diagram for ilErrorHandling:Public Member Functions | |
| __construct () | |
| Constructor @access public. More... | |
| getHandler () | |
| Get a handler for an error or exception. More... | |
| errorHandler ($a_error_obj) | |
| Defines what has to happen in case of error. More... | |
| 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... | |
Public Member Functions inherited from PEAR | |
| __construct ($error_class=null) | |
| Constructor. More... | |
| _PEAR () | |
| Destructor (the emulated type of...). More... | |
| registerShutdownFunc ($func, $args=array()) | |
| Use this function to register a shutdown method for static classes. More... | |
| isError ($data, $code=null) | |
| Tell whether a value is a PEAR error. More... | |
| expectError ($code=' *') | |
| This method is used to tell which errors you expect to get. More... | |
| popExpect () | |
| This method pops one element off the expected error codes stack. More... | |
| _checkDelExpect ($error_code) | |
| This method checks unsets an error code if available. More... | |
| delExpect ($error_code) | |
| This method deletes all occurences of the specified element from the expected error codes stack. More... | |
| & | raiseError ($message=null, $code=null, $mode=null, $options=null, $userinfo=null, $error_class=null, $skipmsg=false) |
| This method is a wrapper that returns an instance of the configured error class with this object's default error handling applied. More... | |
| & | throwError ($message=null, $code=null, $userinfo=null) |
| Simpler form of raiseError with fewer options. More... | |
| staticPushErrorHandling ($mode, $options=null) | |
| staticPopErrorHandling () | |
| pushErrorHandling ($mode, $options=null) | |
| Push a new error handler on top of the error handler options stack. More... | |
| popErrorHandling () | |
| Pop the last error handler used. More... | |
| loadExtension ($ext) | |
| OS independant PHP extension load. 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... | |
Data Fields inherited from PEAR | |
| $_debug = false | |
| $_default_error_mode = null | |
| $_default_error_options = null | |
| $_default_error_handler = '' | |
| $_error_class = 'PEAR_Error' | |
| $_expected_errors = array() | |
Protected Member Functions | |
| initWhoopsHandlers () | |
| Initialize Error and Exception Handlers. More... | |
| getIlRuntime () | |
| getWhoops () | |
| isDevmodeActive () | |
| defaultHandler () | |
| devmodeHandler () | |
| Get the handler to be used in DEVMODE. More... | |
| addEditorSupport (PrettyPageHandler $handler) | |
| applyEditorPathTranslations (string &$file, array $pathTranslations) | |
| parseEditorPathTranslation (string $pathTranslationConfig) | |
Protected Attributes | |
| RunInterface | $whoops |
| string | $message |
| bool | $DEBUG_ENV |
| $error_obj = null | |
Static Protected Attributes | |
| static bool | $whoops_handlers_registered = false |
Private Attributes | |
| const | SENSTIVE_PARAMETER_NAMES |
Additional Inherited Members | |
Static Public Member Functions inherited from PEAR | |
| static & | getStaticProperty ($class, $var) |
| If you have a class that's mostly/entirely static, and you need static properties, you can use this method to simulate them. More... | |
| static | setErrorHandling ($mode=null, $options=null) |
| Sets how errors generated by this object should be handled. More... | |
Error Handling & global info handling uses PEAR error class.
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 38 of file class.ilErrorHandling.php.
| ilErrorHandling::__construct | ( | ) |
Constructor @access public.
Definition at line 86 of file class.ilErrorHandling.php.
References ILIAS\GlobalScreen\Provider\__construct(), and initWhoopsHandlers().
Here is the call graph for this function:
|
protected |
Definition at line 372 of file class.ilErrorHandling.php.
References applyEditorPathTranslations(), and parseEditorPathTranslation().
Referenced by devmodeHandler().
Here is the call graph for this function:
Here is the caller graph for this function:| ilErrorHandling::appendMessage | ( | string | $a_message | ) |
Definition at line 260 of file class.ilErrorHandling.php.
References getMessage().
Here is the call graph for this function:
|
protected |
Definition at line 394 of file class.ilErrorHandling.php.
Referenced by addEditorSupport().
Here is the caller graph for this function:
|
protected |
Definition at line 283 of file class.ilErrorHandling.php.
References $DIC, $message, exit, ilLoggingErrorSettings\getInstance(), and ilSession\set().
Referenced by getHandler().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Get the handler to be used in DEVMODE.
Definition at line 339 of file class.ilErrorHandling.php.
References $param, and addEditorSupport().
Referenced by getHandler().
Here is the call graph for this function:
Here is the caller graph for this function:| ilErrorHandling::errorHandler | ( | $a_error_obj | ) |
Defines what has to happen in case of error.
| PEAR_Error | $a_error_obj | PEAR Error object |
Definition at line 147 of file class.ilErrorHandling.php.
References $_SERVER, Vendor\Package\$b, $i, $log, $message, $WARNING, 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 130 of file class.ilErrorHandling.php.
References defaultHandler(), devmodeHandler(), and isDevmodeActive().
Here is the call graph for this function:
|
protected |
Definition at line 268 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 250 of file class.ilErrorHandling.php.
References $message.
Referenced by appendMessage(), 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 273 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 441 of file class.ilErrorHandling.php.
References $message, and isDevmodeActive().
Here is the call graph for this function:
|
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 110 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 278 of file class.ilErrorHandling.php.
References ILIAS\Repository\int().
Referenced by getHandler(), and handlePreWhoops().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 401 of file class.ilErrorHandling.php.
References $parts.
Referenced by addEditorSupport().
Here is the caller graph for this function:| ilErrorHandling::setMessage | ( | string | $a_message | ) |
Definition at line 255 of file class.ilErrorHandling.php.
|
protected |
Definition at line 54 of file class.ilErrorHandling.php.
|
protected |
Definition at line 80 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 53 of file class.ilErrorHandling.php.
Referenced by defaultHandler(), errorHandler(), getMessage(), and handlePreWhoops().
| int ilErrorHandling::$MESSAGE = 3 |
Error level 3: show message in recent page.
Definition at line 69 of file class.ilErrorHandling.php.
| int ilErrorHandling::$WARNING = 2 |
Error level 2: show warning page.
Definition at line 64 of file class.ilErrorHandling.php.
Referenced by errorHandler().
|
protected |
Definition at line 51 of file class.ilErrorHandling.php.
|
staticprotected |
Definition at line 75 of file class.ilErrorHandling.php.
|
private |
Definition at line 40 of file class.ilErrorHandling.php.