| 1 | <?php |
||
| 7 | abstract class Component { |
||
| 8 | |||
| 9 | /** |
||
| 10 | * @var array |
||
| 11 | */ |
||
| 12 | protected $dontHandle = []; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var array |
||
| 16 | */ |
||
| 17 | private $absolutelyDontHandle = [ |
||
| 18 | Tylercd100\LERN\Exceptions\LERNExceptionInterface::class, |
||
| 19 | ]; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Determine if the exception is in the "do not report" list. |
||
| 23 | * |
||
| 24 | * @param \Exception $e |
||
| 25 | * @return bool |
||
| 26 | */ |
||
| 27 | protected function shouldHandle(Exception $e){ |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Determine if the exception is in the "do not report" list. |
||
| 33 | * |
||
| 34 | * @param \Exception $e |
||
| 35 | * @return bool |
||
| 36 | */ |
||
| 37 | 12 | protected function shouldntHandle(Exception $e){ |
|
| 48 | } |