Module: RPC::ExceptionsMixin

Defined in:
lib/rpc/lib/rpc.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#server_backtraceObject

Returns the value of attribute server_backtrace.



52
53
54
# File 'lib/rpc/lib/rpc.rb', line 52

def server_backtrace
  @server_backtrace
end

Instance Method Details

#backtraceObject

NOTE: We can’t use super to get the client backtrace, because backtrace is generated only if there is none yet and because we are redefining the backtrace method, there always will be some backtrace.



58
59
60
61
62
# File 'lib/rpc/lib/rpc.rb', line 58

def backtrace
  @backtrace ||= begin
    caller(3) + ["... server ..."] + self.server_backtrace
  end
end