new custom exceptions added
This commit is contained in:
parent
f7faa6541d
commit
a2dc59b84a
6 changed files with 108 additions and 17 deletions
26
src/Core/Exception/MessageMoveException.php
Normal file
26
src/Core/Exception/MessageMoveException.php
Normal 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));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue