Full implemantation
This commit is contained in:
@ -1,14 +1,15 @@
|
||||
<?php
|
||||
namespace ProVM\Common\Exception;
|
||||
|
||||
use Ddeboer\Imap\MailboxInterface;
|
||||
use Exception;
|
||||
|
||||
class EmptyMailbox extends Exception
|
||||
{
|
||||
public function __construct(?Throwable $previous = null)
|
||||
public function __construct(MailboxInterface $mailbox, ?Throwable $previous = null)
|
||||
{
|
||||
$message = "No mails found";
|
||||
$code = 102;
|
||||
$message = "No mails found in {$mailbox->getName()}";
|
||||
$code = 101;
|
||||
parent::__construct($message, $code, $previous);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user