ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Handler.php
Go to the documentation of this file.
1<?php
7namespace Whoops\Handler;
8
11
15abstract class Handler implements HandlerInterface
16{
17 /*
18 Return constants that can be returned from Handler::handle
19 to message the handler walker.
20 */
21 const DONE = 0x10; // returning this is optional, only exists for
22 // semantic purposes
27 const LAST_HANDLER = 0x20;
31 const QUIT = 0x30;
32
36 private $run;
37
41 private $inspector;
42
46 private $exception;
47
51 public function setRun(RunInterface $run)
52 {
53 $this->run = $run;
54 }
55
59 protected function getRun()
60 {
61 return $this->run;
62 }
63
68 {
69 $this->inspector = $inspector;
70 }
71
75 protected function getInspector()
76 {
77 return $this->inspector;
78 }
79
83 public function setException($exception)
84 {
85 $this->exception = $exception;
86 }
87
91 protected function getException()
92 {
93 return $this->exception;
94 }
95}
An exception for terminatinating execution or to throw for unit testing.
Abstract implementation of a Handler.
Definition: Handler.php:16
const LAST_HANDLER
The Handler has handled the Throwable in some way, and wishes to skip any other Handler.
Definition: Handler.php:27
const QUIT
The Handler has handled the Throwable in some way, and wishes to quit/stop execution.
Definition: Handler.php:31
setInspector(Inspector $inspector)
Definition: Handler.php:67
setRun(RunInterface $run)
Definition: Handler.php:51
setException($exception)
Definition: Handler.php:83
Whoops - php errors for cool kids.