snappymail/rainloop/v/0.0.0/app/libraries/MailSo/Net/Exceptions/SocketCanNotConnectToHostException.php
djmaze f6fdb69c65 Changed: MailSo\*Collection now extends \ArrayObject
Changed: fixed __constructor param type hinting
Replace: &$o with $o as objects don't need & referencing
2020-03-18 23:14:00 +01:00

48 lines
955 B
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;
public function __construct(string $sSocketMessage = '', int $iSocketCode = 0, string $sMessage = '', int $iCode = 0, ?\Throwable $oPrevious = null)
{
parent::__construct($sMessage, $iCode, $oPrevious);
$this->sSocketMessage = $sSocketMessage;
$this->iSocketCode = $iSocketCode;
}
public function getSocketMessage() : string
{
return $this->sSocketMessage;
}
public function getSocketCode() : int
{
return $this->iSocketCode;
}
}