例如,我想从 a 中救援Net::HTTP::Persistent::Error
,但是它有很多类型:
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
对于我想做的每种类型的其他事情,那将如何完成?