blob: bc2aa7978b257b28ff384b1d4750b66bac77f82c [file] [log] [blame]
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02001<?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 */
11namespace Carbon\Exceptions;
12
13use Exception;
14
15class BadComparisonUnitException extends UnitException
16{
17 /**
18 * Constructor.
19 *
20 * @param string $unit
21 * @param int $code
22 * @param Exception|null $previous
23 */
24 public function __construct($unit, $code = 0, Exception $previous = null)
25 {
26 parent::__construct("Bad comparison unit: '$unit'", $code, $previous);
27 }
28}