Module: REST::Error::Protocol

Defined in:
lib/rest/error.rb

Overview

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

Class Method Summary collapse

Class Method Details

.class_namesObject



55
56
57
58
59
60
61
62
# File 'lib/rest/error.rb', line 55

def self.class_names
  %w(
    Net::HTTPBadResponse
    Net::HTTPHeaderSyntaxError
    Net::ProtocolError
    Zlib::GzipFile::Error
  )
end