Full implemantation
This commit is contained in:
15
api/common/Exception/Message/NoAttachments.php
Normal file
15
api/common/Exception/Message/NoAttachments.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
namespace ProVM\Common\Exception\Message;
|
||||
|
||||
use Ddeboer\Imap\MessageInterface;
|
||||
use Exception;
|
||||
|
||||
class NoAttachments extends Exception
|
||||
{
|
||||
public function __construct(MessageInterface $message, ?Throwable $previous = null)
|
||||
{
|
||||
$message = "{$message->getSubject()} has no attachments";
|
||||
$code = 110;
|
||||
parent::__construct($message, $code, $previous);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user