Exception: OandaAPI::Streaming::AdapterError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- OandaAPI::Streaming::AdapterError
- Defined in:
- lib/oanda_api/streaming/adapter_error.rb
Overview
Raised if an invalid adapter is used with JsonParser
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
Class Method Summary collapse
Instance Attribute Details
#cause ⇒ Object (readonly)
Returns the value of attribute cause.
6 7 8 |
# File 'lib/oanda_api/streaming/adapter_error.rb', line 6 def cause @cause end |
Class Method Details
.build(original_exception) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/oanda_api/streaming/adapter_error.rb', line 8 def self.build(original_exception) = "Did not recognize your adapter specification (#{original_exception.})." new().tap do |exception| exception.instance_eval do @cause = original_exception set_backtrace original_exception.backtrace end end end |