Exception: SimpleRPC::RPCError

Inherits:
Exception
  • Object
show all
Defined in:
lib/simplerpc/exceptions.rb

Overview

Superclass of all RPC-related exceptions

Direct Known Subclasses

ConnectionError, FormatError, RemoteException

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#causeObject (readonly)

Returns the value of attribute cause.



10
11
12
# File 'lib/simplerpc/exceptions.rb', line 10

def cause
  @cause
end