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



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

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