Files
code-bang/backend/vendor/maennchen/zipstream-php/src/Exception/DosTimeOverflowException.php
T

26 lines
511 B
PHP
Raw Normal View History

2026-10-16 18:13:09 +08:00
<?php
declare(strict_types=1);
namespace ZipStream\Exception;
use DateTimeInterface;
use ZipStream\Exception;
/**
* This Exception gets invoked if a DOS time is overflowing
*
* @api
*/
class DosTimeOverflowException extends Exception
{
/**
* @internal
*/
public function __construct(
public readonly DateTimeInterface $dateTime
) {
parent::__construct('The date ' . $dateTime->format(DateTimeInterface::ATOM) . " can't be represented as DOS time / date.");
}
}