For example, I want to rescue from a Net::HTTP::Persistent::Error
, however it has many types:
Net::HTTP::Persistent::Error: too many connection resets (due to end of file reached - EOFError)
Net::HTTP::Persistent::Error: too many connection resets (due to Timeout::Error - Timeout::Error)
Net::HTTP::Persistent::Error: connection refused: domain:443
For each type I want to do something else, how would that be done?