| 1 | <?php  | 
            ||
| 12 | class ExceptionEvent extends SimpleEvent  | 
            ||
| 13 | { | 
            ||
| 14 | private $exception;  | 
            ||
| 15 | private $response;  | 
            ||
| 16 | |||
| 17 | public function __construct(\Throwable $exception)  | 
            ||
| 21 | |||
| 22 | public function exception(): \Throwable  | 
            ||
| 26 | |||
| 27 | public function response(): ?Response  | 
            ||
| 31 | |||
| 32 | public function setResponse(Response $response): void  | 
            ||
| 37 | |||
| 38 | /**  | 
            ||
| 39 | * Forbids stop of current event propagation if response is not setted.  | 
            ||
| 40 | *  | 
            ||
| 41 |      * {@inheritdoc} | 
            ||
| 42 | */  | 
            ||
| 43 | public function stopPropagation(): void  | 
            ||
| 51 | }  | 
            ||
| 52 |