Exception: Fabric::ChaincodeError

Inherits:
Error
  • Object
show all
Defined in:
lib/fabric/error.rb

Instance Attribute Summary

Attributes inherited from Error

#code, #errors

Instance Method Summary collapse

Methods inherited from Error

#response

Constructor Details

#initialize(message) ⇒ ChaincodeError

Returns a new instance of ChaincodeError.



34
35
36
37
38
# File 'lib/fabric/error.rb', line 34

def initialize(message)
  response = Hashie::Mash.new JSON.parse(message)

  super response.message, response.code, response.errors
end