Exception: CurrencyLayerApi::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/currency_layer_api/error.rb

Overview

Error class for CurrencyLayerApi

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, exception_type) ⇒ Error

Returns a new instance of Error.



8
9
10
11
# File 'lib/currency_layer_api/error.rb', line 8

def initialize(msg, exception_type)
  @code = exception_type
  super(msg)
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



6
7
8
# File 'lib/currency_layer_api/error.rb', line 6

def code
  @code
end