miniflux-legacy/vendor/pda/pheanstalk/src/Exception/ConnectionException.php

24 lines
563 B
PHP
Raw Normal View History

2016-05-02 04:03:21 +02:00
<?php
namespace Pheanstalk\Exception;
/**
* An exception relating to the client connection to the beanstalkd server
*
* @author Paul Annesley
* @package Pheanstalk
* @license http://www.opensource.org/licenses/mit-license.php
*/
class ConnectionException
extends ClientException
{
/**
* @param int $errno The connection error code
* @param string $errstr The connection error message
*/
public function __construct($errno, $errstr)
{
parent::__construct(sprintf('Socket error %d: %s', $errno, $errstr));
}
}