DosTimeOverflowException.php 494 B

1234567891011121314151617181920212223
  1. <?php
  2. declare(strict_types=1);
  3. namespace ZipStream\Exception;
  4. use DateTimeInterface;
  5. use ZipStream\Exception;
  6. /**
  7. * This Exception gets invoked if a file wasn't found
  8. */
  9. class DosTimeOverflowException extends Exception
  10. {
  11. /**
  12. * @internal
  13. */
  14. public function __construct(
  15. public readonly DateTimeInterface $dateTime
  16. ) {
  17. parent::__construct('The date ' . $dateTime->format(DateTimeInterface::ATOM) . " can't be represented as DOS time / date.");
  18. }
  19. }