MGDigital\BusQue\Redis\Predis\PredisAdapter::tryCatch PHP Method

tryCatch() private method

private tryCatch ( callable $callable )
$callable callable
    private function tryCatch(callable $callable)
    {
        try {
            return $callable();
        } catch (ConnectionException $e) {
            throw new DriverException($e->getMessage(), 0, $e);
        }
    }