{"comment":{"created_at":"2011-10-19T00:05:28Z","body":"I see, well if it works then that's fine :-)","updated_at":"2011-10-19T00:05:28Z","url":"https://api.github.com/repos/nrk/predis/issues/comments/2449581","id":2449581,"user":{"avatar_url":"https://secure.gravatar.com/avatar/1c29f9b1bf5f1b88ed8b0c9a9be39788?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"1c29f9b1bf5f1b88ed8b0c9a9be39788","url":"https://api.github.com/users/nrk","id":17923,"login":"nrk"}},"action":"created","issue":{"number":45,"created_at":"2011-10-18T22:33:43Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"If Redis isn't running, the first command run through Predis seems to exit with \"Connection refused\" - would it be possible to have it throw an exception instead?\r\n\r\nIf an exception was thrown, right after the connection I would basically do:\r\n\r\n```php\r\ntry {\r\n    $predis->ping();\r\n}\r\ncatch(\\Exception $e) { ... }\r\n```","comments":3,"title":"Throw exception on 'Connection refused'?","updated_at":"2011-10-19T00:05:28Z","url":"https://api.github.com/repos/nrk/predis/issues/45","id":1979886,"assignee":null,"milestone":null,"closed_at":"2011-10-19T00:00:26Z","user":{"avatar_url":"https://secure.gravatar.com/avatar/beef97d96f8513ed86ef84952dedc13b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"beef97d96f8513ed86ef84952dedc13b","url":"https://api.github.com/users/DanL","id":9243,"login":"DanL"},"html_url":"https://github.com/nrk/predis/issues/45","labels":[],"state":"closed"},"legacy":{"issue_id":1979886,"comment_id":2449581}}