ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilDelegatingHandler.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 2015 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4 
23 require_once("./Services/Exceptions/lib/Whoops/Run.php");
24 require_once("./Services/Exceptions/lib/Whoops/Handler/HandlerInterface.php");
25 require_once("./Services/Exceptions/lib/Whoops/Handler/Handler.php");
26 
28 
29 final class ilDelegatingHandler extends Handler {
33  private $error_handling;
34 
36  $this->error_handling = $error_handling;
37  }
38 
47  public function handle() {
48  if (defined("IL_INITIAL_WD"))
49  {
50  chdir(IL_INITIAL_WD);
51  }
52  $handler = $this->error_handling->getHandler();
53  $handler->setRun($this->getRun());
54  $handler->setException($this->getException());
55  $handler->setInspector($this->getInspector());
56  $handler->handle();
57  }
58 }
59 
60 ?>
handle()
Last missing method from HandlerInterface.
__construct(ilErrorHandling $error_handling)
const IL_INITIAL_WD
Definition: error.php:5
Abstract implementation of a Handler.
Definition: Handler.php:16
A Whoops error handler that delegates calls on it self to another handler that is created only in the...