mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-25 18:19:22 +03:00
61 lines
1.1 KiB
PHP
61 lines
1.1 KiB
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of MailSo.
|
|
*
|
|
* (c) 2014 Usenko Timur
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace MailSo\Net\Exceptions;
|
|
|
|
/**
|
|
* @category MailSo
|
|
* @package Net
|
|
* @subpackage Exceptions
|
|
*/
|
|
class SocketCanNotConnectToHostException extends \MailSo\Net\Exceptions\ConnectionException
|
|
{
|
|
/**
|
|
* @var string
|
|
*/
|
|
private $sSocketMessage;
|
|
|
|
/**
|
|
* @var int
|
|
*/
|
|
private $iSocketCode;
|
|
|
|
/**
|
|
* @param string $sSocketMessage = ''
|
|
* @param int $iSocketCode = 0
|
|
* @param string $sMessage = ''
|
|
* @param int $iCode = 0
|
|
* @param \Exception $oPrevious = null
|
|
*/
|
|
public function __construct($sSocketMessage = '', $iSocketCode = 0, $sMessage = '', $iCode = 0, $oPrevious = null)
|
|
{
|
|
parent::__construct($sMessage, $iCode, $oPrevious);
|
|
|
|
$this->sSocketMessage = $sSocketMessage;
|
|
$this->iSocketCode = $iSocketCode;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getSocketMessage()
|
|
{
|
|
return $this->sSocketMessage;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getSocketCode()
|
|
{
|
|
return $this->iSocketCode;
|
|
}
|
|
}
|