Exception: SimpleRPC::RPCError
- Inherits:
-
Exception
- Object
- Exception
- SimpleRPC::RPCError
- Defined in:
- lib/simplerpc/exceptions.rb
Overview
Superclass of all RPC-related exceptions
Direct Known Subclasses
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
Instance Method Summary collapse
-
#initialize(exception) ⇒ RPCError
constructor
A new instance of RPCError.
Constructor Details
#initialize(exception) ⇒ RPCError
Returns a new instance of RPCError.
12 13 14 15 |
# File 'lib/simplerpc/exceptions.rb', line 12 def initialize(exception) super("#{exception.class}: #{exception}") set_backtrace(exception.backtrace) end |
Instance Attribute Details
#cause ⇒ Object (readonly)
Returns the value of attribute cause.
10 11 12 |
# File 'lib/simplerpc/exceptions.rb', line 10 def cause @cause end |