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