src/Pipeline/Pipeline.php
protected function exception(ConnectionInterface $connection, ErrorResponseInterface $response)
    {
        $connection->disconnect();
        $message = $response->getMessage();

        throw new ServerException($message);
    }
protected function exception(ConnectionInterface $connection, ErrorResponseInterface $response)
    {
        $connection->disconnect();
        $message = $response->getMessage();

        throw new ServerException($message);
    }
protected function exception ( ConnectionInterface $ connection , ErrorResponseInterface $ response ) { $ connection -> disconnect ( ) ; $ message = $ response -> getMessage ( ) ; throw new ServerException ( $ message ) ; }
Throws an exception on -ERR responses returned by Redis.

@param ConnectionInterface    $connection Redis connection that returned the error.
@param ErrorResponseInterface $response   Instance of the error response.

@throws ServerException
Throws an exception on - ERR responses returned by Redis .