Exception: SimpleRPC::RemoteException
- Inherits:
-
Exception
- Object
- Exception
- SimpleRPC::RemoteException
- Defined in:
- lib/simplerpc/client.rb
Overview
Thrown when the server raises an exception.
The message is set to the server’s exception class.
Instance Attribute Summary collapse
-
#remote_exception ⇒ Object
readonly
Returns the value of attribute remote_exception.
Instance Method Summary collapse
-
#backtrace ⇒ Object
Return the backtrace from the original (remote) exception.
-
#initialize(exception) ⇒ RemoteException
constructor
A new instance of RemoteException.
-
#to_s ⇒ Object
Return a string representing the remote exception.
Constructor Details
#initialize(exception) ⇒ RemoteException
Returns a new instance of RemoteException.
21 22 23 24 |
# File 'lib/simplerpc/client.rb', line 21 def initialize(exception) super(exception) @remote_exception = exception end |
Instance Attribute Details
#remote_exception ⇒ Object (readonly)
Returns the value of attribute remote_exception.
19 20 21 |
# File 'lib/simplerpc/client.rb', line 19 def remote_exception @remote_exception end |
Instance Method Details
#backtrace ⇒ Object
Return the backtrace from the original (remote) exception
28 29 30 |
# File 'lib/simplerpc/client.rb', line 28 def backtrace @remote_exception.backtrace end |
#to_s ⇒ Object
Return a string representing the remote exception
33 34 35 |
# File 'lib/simplerpc/client.rb', line 33 def to_s @remote_exception.to_s end |