Module: REST::Error::Timeout

Defined in:
lib/rest/error.rb

Overview

This constant can be used to rescue only the known `Timeout` error classes.

Class Method Summary collapse

Class Method Details

.class_namesObject


25
26
27
28
29
30
31
32
# File 'lib/rest/error.rb', line 25

def self.class_names
  %w(
    Errno::ETIMEDOUT
    Timeout::Error
    Net::OpenTimeout
    Net::ReadTimeout
  )
end