Class: Peatio::Blockchain::ClientError
- Defined in:
- lib/peatio/blockchain/error.rb
Instance Attribute Summary collapse
-
#wrapped_ex ⇒ Object
readonly
Returns the value of attribute wrapped_ex.
Instance Method Summary collapse
-
#initialize(ex_or_string) ⇒ ClientError
constructor
A new instance of ClientError.
Constructor Details
#initialize(ex_or_string) ⇒ ClientError
Returns a new instance of ClientError.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/peatio/blockchain/error.rb', line 9 def initialize(ex_or_string) @wrapped_ex = nil if ex_or_string.respond_to?(:backtrace) super(ex_or_string.) @wrapped_exception = ex_or_string else super(ex_or_string.to_s) end end |
Instance Attribute Details
#wrapped_ex ⇒ Object (readonly)
Returns the value of attribute wrapped_ex
7 8 9 |
# File 'lib/peatio/blockchain/error.rb', line 7 def wrapped_ex @wrapped_ex end |