Exception: ExchangeRatesAPI::Error
- Inherits:
-
StandardError
- Object
- StandardError
- ExchangeRatesAPI::Error
- Defined in:
- lib/exchangeratesapi/errors.rb
Direct Known Subclasses
AuthenticationError, RateLimitError, RequestError, ServerError
Instance Attribute Summary collapse
-
#error_response ⇒ Object
readonly
Returns the value of attribute error_response.
Instance Method Summary collapse
-
#initialize(message = nil, error_response: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, error_response: nil) ⇒ Error
Returns a new instance of Error.
7 8 9 10 |
# File 'lib/exchangeratesapi/errors.rb', line 7 def initialize( = nil, error_response: nil) @error_response = error_response super( || "Exchange Rates API error") end |
Instance Attribute Details
#error_response ⇒ Object (readonly)
Returns the value of attribute error_response.
5 6 7 |
# File 'lib/exchangeratesapi/errors.rb', line 5 def error_response @error_response end |