I’m writing some code that needs to handle a failed network connection. Here’s an almost certainly incomplete list of the exceptions I need rescue:
SocketError, Timeout::Error, ActiveResource::TimeoutError, Errno::ECONNREFUSED, Errno::EHOSTDOWN, Errno::EHOSTUNREACH
How about an IOError or something?