1 | <?php namespace Anomaly\Streams\Platform\Exception\Displayer; |
||
12 | class ViewDisplayer extends \GrahamCampbell\Exceptions\Displayers\ViewDisplayer |
||
13 | { |
||
14 | |||
15 | /** |
||
16 | * Get the error response associated with the given exception. |
||
17 | * |
||
18 | * @param \Exception $exception |
||
19 | * @param string $id |
||
20 | * @param int $code |
||
21 | * @param string[] $headers |
||
22 | * |
||
23 | * @return \Symfony\Component\HttpFoundation\Response |
||
24 | */ |
||
25 | public function display(\Exception $exception, $id, $code, array $headers) |
||
35 | |||
36 | /** |
||
37 | * Can we display the exception? |
||
38 | * |
||
39 | * @param \Exception $original |
||
40 | * @param \Exception $transformed |
||
41 | * @param int $code |
||
42 | * |
||
43 | * @return bool |
||
44 | */ |
||
45 | public function canDisplay(\Exception $original, \Exception $transformed, $code) |
||
49 | } |
||
50 |