Exception: CurrencyLayerApi::Error
- Inherits:
-
StandardError
- Object
- StandardError
- CurrencyLayerApi::Error
- Defined in:
- lib/currency_layer_api/error.rb
Overview
Error class for CurrencyLayerApi
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(msg, exception_type) ⇒ Error
constructor
A new instance of Error.
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
#code ⇒ Object (readonly)
Returns the value of attribute code.
6 7 8 |
# File 'lib/currency_layer_api/error.rb', line 6 def code @code end |