Exception: ExchangeRatesAPI::RateLimitError

Inherits:
Error
  • Object
show all
Defined in:
lib/exchangeratesapi/errors.rb

Instance Attribute Summary

Attributes inherited from Error

#error_response

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, error_response: nil) ⇒ RateLimitError

Returns a new instance of RateLimitError.



32
33
34
# File 'lib/exchangeratesapi/errors.rb', line 32

def initialize(message = nil, error_response: nil)
  super(message || "Rate limit exceeded", error_response: error_response)
end