InvalidDateFormatException.php
3 months ago
OperatorNotFoundException.php
3 months ago
SpecificationNotFoundException.php
3 months ago
OperatorNotFoundException.php
20 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace AC\Expression\Exception; |
| 6 | |
| 7 | use InvalidArgumentException; |
| 8 | use Throwable; |
| 9 | |
| 10 | final class OperatorNotFoundException extends InvalidArgumentException |
| 11 | { |
| 12 | |
| 13 | public function __construct(string $operator, ?Throwable $previous = null) |
| 14 | { |
| 15 | $message = sprintf('Operator %s was not found.', $operator); |
| 16 | |
| 17 | parent::__construct($message, 0, $previous); |
| 18 | } |
| 19 | |
| 20 | } |