blob: f0522c90ec766ebf2157db11dc0bf2d16477ea12 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?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));
}
}
|