new custom exceptions added

This commit is contained in:
Clivern 2017-08-11 23:19:19 +02:00
commit a2dc59b84a
6 changed files with 108 additions and 17 deletions

View file

@ -0,0 +1,26 @@
<?php
/**
* @author clivern <hello@clivern.com>
*/
namespace Clivern\Imap\Core\Exception;
/**
* Connection Error Class
*
* @package Clivern\Imap\Core\Exception
*/
class MessageMoveException extends \Exception
{
/**
* Class Constructor
*
* @param integer $message_number
* @param string $mailbox
*/
public function __construct($message_number, $mailbox)
{
parent::__construct(sprintf('Message %s cannot be moved to %s', $message_number, $mailbox));
}
}