Exception: RpcErrorInfo

Inherits:
StandardError
  • Object
show all
Defined in:
lib/calimero/types/rpc.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, cause) ⇒ RpcErrorInfo

Returns a new instance of RpcErrorInfo.



21
22
23
24
25
# File 'lib/calimero/types/rpc.rb', line 21

def initialize(name, cause)
  @name = name
  @cause = cause
  super(cause[:message])
end

Instance Attribute Details

#causeObject (readonly)

Returns the value of attribute cause.



19
20
21
# File 'lib/calimero/types/rpc.rb', line 19

def cause
  @cause
end

#nameObject (readonly)

Returns the value of attribute name.



19
20
21
# File 'lib/calimero/types/rpc.rb', line 19

def name
  @name
end