Exception: Ethikdo::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Ethikdo::Error
- Defined in:
- lib/ethikdo/error.rb
Direct Known Subclasses
Constant Summary collapse
- NET_HTTP_ERRORS =
[ EOFError, Errno::ECONNABORTED, Errno::ECONNREFUSED, Errno::ECONNRESET, Errno::EHOSTUNREACH, Errno::EINVAL, Errno::ENETUNREACH, Net::HTTPBadResponse, Net::HTTPHeaderSyntaxError, Net::ProtocolError, Net::OpenTimeout, Net::ReadTimeout, SocketError, Zlib::GzipFile::Error, OpenSSL::SSL::SSLError, ]
Instance Attribute Summary collapse
-
#http_response ⇒ Object
readonly
Returns the value of attribute http_response.
Instance Method Summary collapse
- #http_request ⇒ Object
-
#initialize(response = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(response = nil) ⇒ Error
Returns a new instance of Error.
25 26 27 28 |
# File 'lib/ethikdo/error.rb', line 25 def initialize(response = nil) @http_response = response super() end |
Instance Attribute Details
#http_response ⇒ Object (readonly)
Returns the value of attribute http_response.
23 24 25 |
# File 'lib/ethikdo/error.rb', line 23 def http_response @http_response end |
Instance Method Details
#http_request ⇒ Object
30 31 32 |
# File 'lib/ethikdo/error.rb', line 30 def http_request http_response.request end |