Exception: ExchangeRatesAPI::AuthenticationError

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) ⇒ AuthenticationError

Returns a new instance of AuthenticationError.



26
27
28
# File 'lib/exchangeratesapi/errors.rb', line 26

def initialize(message = nil, error_response: nil)
  super(message || "Authentication failed", error_response: error_response)
end