exceptions fixed
This commit is contained in:
parent
36cce72b66
commit
5c9c7195be
|
@ -13,16 +13,13 @@ namespace Clivern\Imap\Core\Exception;
|
||||||
class AuthenticationFailedException extends \Exception
|
class AuthenticationFailedException extends \Exception
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class Constructor
|
||||||
|
*
|
||||||
|
* @param string $error
|
||||||
|
*/
|
||||||
public function __construct($error = null)
|
public function __construct($error = null)
|
||||||
{
|
{
|
||||||
parent::__construct(
|
parent::__construct(sprintf("Authentication failed with error: %s", $error));
|
||||||
sprintf(
|
|
||||||
"Authentication failed with error: %s",
|
|
||||||
$server,
|
|
||||||
$port,
|
|
||||||
$email,
|
|
||||||
$error
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -12,6 +12,7 @@ namespace Clivern\Imap\Core\Exception;
|
||||||
*/
|
*/
|
||||||
class MessageDoesNotExistException extends \Exception
|
class MessageDoesNotExistException extends \Exception
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class Constructor
|
* Class Constructor
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue