module REST::Error::Connection

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

Public Class Methods

class_names() click to toggle source
# File lib/rest/error.rb, line 37
def self.class_names
  %w(
    EOFError
    Errno::ECONNABORTED
    Errno::ECONNREFUSED
    Errno::ECONNRESET
    Errno::EHOSTDOWN
    Errno::EHOSTUNREACH
    Errno::EINVAL
    Errno::ENETUNREACH
    SocketError
    OpenSSL::SSL::SSLError
  )
end