Full implemantation
This commit is contained in:
15
api/common/Exception/Attachment/NotFound.php
Normal file
15
api/common/Exception/Attachment/NotFound.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user