Closed Satshabad closed 10 years ago
Hi Satshabad,
So in conclusion, you should either propagate the original ConnectException, or you should have your own that I can catch.
Any connection error will throw with as a "Carmine connection error" Exception, with the original exception attached as a cause. That should be what you're looking for?
Also, if there is a better way to check if a server exists
No, I think what you're doing here is quite appropriate - I do something similar.
Hope that helps, cheers! :-)
If I try
(wcar {} (car/ping))
when I am not running redis I get a message sayingWhich makes me think I should do this
But, that doesn't work. I look at the stack track and I see:
and
works fine.
So in conclusion, you should either propagate the original ConnectException, or you should have your own that I can catch. There is a lot that can go wrong with
(car/ping)
Also, if there is a better way to check if a server exists (say like
(car/nil-if-down)
) let me know.