|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
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... | |
| getLastError () | |
| errorHandler ($a_error_obj) | |
| defines what has to happen in case of error @access private More... | |
| getMessage () | |
| setMessage ($a_message) | |
| appendMessage ($a_message) | |
| handlePreWhoops ($level, $message, $file, $line) | |
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... | |
Static Public Member Functions | |
| static | _ilErrorWriter ($errno, $errstr, $errfile, $errline) |
| This is used in Soap calls to write PHP error in ILIAS Logfile Not used yet!!! More... | |
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... | |
Data Fields | |
| $DEBUG_ENV | |
| $FATAL | |
| $WARNING | |
| $MESSAGE | |
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 () | |
| Get ilRuntime. More... | |
| getWhoops () | |
| Get an instance of Whoops/Run. More... | |
| isDevmodeActive () | |
| Is the DEVMODE switched on? More... | |
| defaultHandler () | |
| Get a default error handler. More... | |
| devmodeHandler () | |
| Get the handler to be used in DEVMODE. More... | |
| addEditorSupport (PrettyPageHandler $handler) | |
| applyEditorPathTranslations (string &$file, array $pathTranslations) | |
| parseEditorPathTranslation (string $pathTranslationConfig) | |
Static Protected Attributes | |
| static | $whoops_handlers_registered = false |
Private Attributes | |
| const | SENSTIVE_PARAMETER_NAMES |
Definition at line 31 of file class.ilErrorHandling.php.
| ilErrorHandling::__construct | ( | ) |
Constructor @access public.
Definition at line 82 of file class.ilErrorHandling.php.
References ILIAS\GlobalScreen\Provider\__construct(), and initWhoopsHandlers().
Here is the call graph for this function:
|
static |
This is used in Soap calls to write PHP error in ILIAS Logfile Not used yet!!!
@access public
Definition at line 304 of file class.ilErrorHandling.php.
References exit.
|
protected |
| PrettyPageHandler | $handler |
Definition at line 434 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 | ( | $a_message | ) |
Definition at line 287 of file class.ilErrorHandling.php.
References getMessage().
Here is the call graph for this function:
|
protected |
| string | $file | |
| array | $pathTranslations |
Definition at line 460 of file class.ilErrorHandling.php.
Referenced by addEditorSupport().
Here is the caller graph for this function:
|
protected |
Get a default error handler.
Definition at line 353 of file class.ilErrorHandling.php.
References $lng, $message, ilLoggingErrorSettings\getInstance(), ilUtil\redirect(), and ilUtil\sendFailure().
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 400 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 @access private
| object | Error |
Definition at line 161 of file class.ilErrorHandling.php.
References $_POST, $_SERVER, $_SESSION, Vendor\Package\$b, $i, $log, $message, $WARNING, exit, and ilUtil\redirect().
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 137 of file class.ilErrorHandling.php.
References defaultHandler(), devmodeHandler(), and isDevmodeActive().
Here is the call graph for this function:
|
protected |
Get ilRuntime.
Definition at line 326 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::getLastError | ( | ) |
Definition at line 151 of file class.ilErrorHandling.php.
| ilErrorHandling::getMessage | ( | ) |
Definition at line 279 of file class.ilErrorHandling.php.
References $message.
Referenced by appendMessage().
Here is the caller graph for this function:
|
protected |
Get an instance of Whoops/Run.
Definition at line 335 of file class.ilErrorHandling.php.
Referenced by initWhoopsHandlers().
Here is the caller graph for this function:| ilErrorHandling::handlePreWhoops | ( | $level, | |
| $message, | |||
| $file, | |||
| $line | |||
| ) |
Definition at line 510 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 109 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 |
Is the DEVMODE switched on?
Definition at line 344 of file class.ilErrorHandling.php.
Referenced by getHandler(), and handlePreWhoops().
Here is the caller graph for this function:
|
protected |
| string | $pathTranslationConfig |
Definition at line 472 of file class.ilErrorHandling.php.
Referenced by addEditorSupport().
Here is the caller graph for this function:| ilErrorHandling::setMessage | ( | $a_message | ) |
Definition at line 283 of file class.ilErrorHandling.php.
| ilErrorHandling::$DEBUG_ENV |
Definition at line 49 of file class.ilErrorHandling.php.
| ilErrorHandling::$FATAL |
Definition at line 56 of file class.ilErrorHandling.php.
| ilErrorHandling::$MESSAGE |
Definition at line 70 of file class.ilErrorHandling.php.
| ilErrorHandling::$WARNING |
Definition at line 63 of file class.ilErrorHandling.php.
Referenced by errorHandler().
|
staticprotected |
Definition at line 76 of file class.ilErrorHandling.php.
|
private |
Definition at line 33 of file class.ilErrorHandling.php.