| 1 | <?php namespace nyx\core\collections; |
||
| 11 | class Exception extends \RuntimeException |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var interfaces\Collection The Collection in which this Exception occurred. |
||
| 15 | */ |
||
| 16 | private $collection; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * {@inheritdoc} |
||
| 20 | * |
||
| 21 | * @param interfaces\Collection $collection The Collection in which this Exception occurred. |
||
| 22 | */ |
||
| 23 | public function __construct(interfaces\Collection $collection, string $message, $code = 0, $previous = null) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Returns the Collection in which this Exception occurred. |
||
| 30 | * |
||
| 31 | * @return interfaces\Collection |
||
| 32 | */ |
||
| 33 | public function getCollection() : interfaces\Collection |
||
| 37 | } |
||
| 38 |