Exception: CoinTools::JSONError

Inherits:
ResponseError show all
Defined in:
lib/cointools/errors.rb

Instance Attribute Summary

Attributes inherited from ResponseError

#response

Instance Method Summary collapse

Methods inherited from Error

#nice_message

Constructor Details

#initialize(response, message = nil) ⇒ JSONError

Returns a new instance of JSONError.



35
36
37
# File 'lib/cointools/errors.rb', line 35

def initialize(response, message = nil)
  super(response, message || "Incorrect JSON structure")
end