lib/3rdParty/composer/nesbot/carbon/src/Carbon/Exceptions/UnsupportedUnitException.php
raw symbols SCIP| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | /** |
| 6 | * This file is part of the Carbon package. |
| 7 | * |
| 8 | * (c) Brian Nesbitt <[email protected]> |
| 9 | * |
| 10 | * For the full copyright and license information, please view the LICENSE |
| 11 | * file that was distributed with this source code. |
| 12 | */ |
| 13 | |
| 14 | namespace Carbon\Exceptions; |
| 15 | |
| 16 | use Exception; |
| 17 | |
| 18 | /** |
| 19 | * @codeCoverageIgnore |
| 20 | */ |
| 21 | class UnsupportedUnitException extends UnitException |
| 22 | { |
| 23 | public function __construct(string $unit, int $code = 0, ?Exception $previous = null) |
| 24 | { |
| 25 | parent::__construct("Unsupported unit '$unit'", $code, $previous); |
| 26 | } |
| 27 | } |