Exception: BitcoinRPC::JSONRPCError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/txcatcher/bitcoin_rpc.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ JSONRPCError

Returns a new instance of JSONRPCError.



88
89
90
91
# File 'lib/txcatcher/bitcoin_rpc.rb', line 88

def initialize(data)
  super(data.to_s)
  self.data = data
end

Instance Attribute Details

#dataObject

Returns the value of attribute data.



87
88
89
# File 'lib/txcatcher/bitcoin_rpc.rb', line 87

def data
  @data
end