| 
    ILIAS
    release_10 Revision v10.1-43-ga1241a92c2f
    
   | 
  
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) | |
| 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 350 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 246 of file class.ilErrorHandling.php.
References getMessage().
 Here is the call graph for this function:
      
  | 
  protected | 
Definition at line 372 of file class.ilErrorHandling.php.
Referenced by addEditorSupport().
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 269 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().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 317 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:
      
  | 
  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, $message, ilUtil\_getHttpPath(), ilSession\clear(), exit, ilSession\get(), ilUtil\redirect(), and ilSession\set().
Referenced by raiseError().
 Here is the call graph for this function:
 Here is the caller 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 254 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 236 of file class.ilErrorHandling.php.
References $message.
Referenced by appendMessage(), and ilObjCourseGUI\updateInfoObject().
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 259 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.
Definition at line 431 of file class.ilErrorHandling.php.
References 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 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 264 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 379 of file class.ilErrorHandling.php.
References $message, and $parts.
Referenced by addEditorSupport().
 Here is the caller graph for this function:| ilErrorHandling::raiseError | ( | string | $message, | 
| ?int | $code | ||
| ) | 
Definition at line 131 of file class.ilErrorHandling.php.
References errorHandler().
 Here is the call graph for this function:| ilErrorHandling::setMessage | ( | string | $a_message | ) | 
Definition at line 241 of file class.ilErrorHandling.php.
Referenced by ilObjCourseGUI\updateInfoObject().
 Here is the caller graph for this function:
      
  | 
  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.