Files
emails/api/common/Exception/Attachment/NotFound.php
2022-11-29 08:57:56 -03:00

15 lines
413 B
PHP

<?php
namespace ProVM\Common\Exception\Attachment;
use Ddeboer\Imap\MessageInterface;
use Exception;
class NotFound extends Exception
{
public function __construct(MessageInterface $message, string $filename, ?Throwable $previous = null)
{
$message = "Attachment {$filename} not found in {$message->getId()}";
$code = 120;
parent::__construct($message, $code, $previous);
}
}