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