Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame] | 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * This file is part of the Carbon package. |
| 5 | * |
| 6 | * (c) Brian Nesbitt <brian@nesbot.com> |
| 7 | * |
| 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | * file that was distributed with this source code. |
| 10 | */ |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame^] | 11 | |
Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame] | 12 | namespace Carbon\Exceptions; |
| 13 | |
| 14 | use Exception; |
| 15 | use RuntimeException as BaseRuntimeException; |
| 16 | |
| 17 | class UnreachableException extends BaseRuntimeException implements RuntimeException |
| 18 | { |
| 19 | /** |
| 20 | * Constructor. |
| 21 | * |
| 22 | * @param string $message |
| 23 | * @param int $code |
| 24 | * @param Exception|null $previous |
| 25 | */ |
| 26 | public function __construct($message, $code = 0, Exception $previous = null) |
| 27 | { |
| 28 | parent::__construct($message, $code, $previous); |
| 29 | } |
| 30 | } |