Exception: RpcErrorInfo
- Inherits:
-
StandardError
- Object
- StandardError
- RpcErrorInfo
- Defined in:
- lib/calimero/types/rpc.rb
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, cause) ⇒ RpcErrorInfo
constructor
A new instance of RpcErrorInfo.
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
#cause ⇒ Object (readonly)
Returns the value of attribute cause.
19 20 21 |
# File 'lib/calimero/types/rpc.rb', line 19 def cause @cause end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
19 20 21 |
# File 'lib/calimero/types/rpc.rb', line 19 def name @name end |