mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 03:29:20 +03:00
Predis to v2.2.2
This commit is contained in:
parent
f6b440adef
commit
84ffe1e552
259 changed files with 2407 additions and 9937 deletions
|
|
@ -3,7 +3,8 @@
|
|||
/*
|
||||
* This file is part of the Predis package.
|
||||
*
|
||||
* (c) Daniele Alessandri <suppakilla@gmail.com>
|
||||
* (c) 2009-2020 Daniele Alessandri
|
||||
* (c) 2021-2023 Till Krüss
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
|
|
@ -11,12 +12,11 @@
|
|||
|
||||
namespace Predis;
|
||||
|
||||
use Exception;
|
||||
use Predis\Connection\NodeConnectionInterface;
|
||||
|
||||
/**
|
||||
* Base exception class for network-related errors.
|
||||
*
|
||||
* @author Daniele Alessandri <suppakilla@gmail.com>
|
||||
*/
|
||||
abstract class CommunicationException extends PredisException
|
||||
{
|
||||
|
|
@ -26,15 +26,20 @@ abstract class CommunicationException extends PredisException
|
|||
* @param NodeConnectionInterface $connection Connection that generated the exception.
|
||||
* @param string $message Error message.
|
||||
* @param int $code Error code.
|
||||
* @param \Exception $innerException Inner exception for wrapping the original error.
|
||||
* @param Exception|null $innerException Inner exception for wrapping the original error.
|
||||
*/
|
||||
public function __construct(
|
||||
NodeConnectionInterface $connection,
|
||||
$message = null,
|
||||
$code = null,
|
||||
\Exception $innerException = null
|
||||
$message = '',
|
||||
$code = 0,
|
||||
Exception $innerException = null
|
||||
) {
|
||||
parent::__construct($message, $code, $innerException);
|
||||
parent::__construct(
|
||||
is_null($message) ? '' : $message,
|
||||
is_null($code) ? 0 : $code,
|
||||
$innerException
|
||||
);
|
||||
|
||||
$this->connection = $connection;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue