Full implemantation
This commit is contained in:
15
api/common/Exception/Mailbox/Stateless.php
Normal file
15
api/common/Exception/Mailbox/Stateless.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
namespace ProVM\Common\Exception\Mailbox;
|
||||
|
||||
use Exception;
|
||||
use ProVM\Emails\Model\Mailbox;
|
||||
|
||||
class Stateless extends Exception
|
||||
{
|
||||
public function __construct(Mailbox $mailbox, ?Throwable $previous = null)
|
||||
{
|
||||
$message = "Mailbox {$mailbox->getName()} has not loaded any emails.";
|
||||
$code = 102;
|
||||
parent::__construct($message, $code, $previous);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user