Full implemantation

This commit is contained in:
2022-11-28 22:56:21 -03:00
parent 30ef4c6a35
commit c53eb4c7a6
55 changed files with 1505 additions and 1011 deletions

View File

@ -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);
}
}