Exception: Qonto::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Qonto::Error
- Defined in:
- lib/qonto/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.
23 24 25 26 |
# File 'lib/qonto/error.rb', line 23 def initialize(response = nil) @http_response = response super() end |
Instance Attribute Details
#http_response ⇒ Object (readonly)
Returns the value of attribute http_response.
21 22 23 |
# File 'lib/qonto/error.rb', line 21 def http_response @http_response end |
Instance Method Details
#http_request ⇒ Object
28 29 30 |
# File 'lib/qonto/error.rb', line 28 def http_request http_response.request end |