Module: RPC::ExceptionsMixin
- Defined in:
- lib/rpc/lib/rpc.rb
Instance Attribute Summary collapse
-
#server_backtrace ⇒ Object
Returns the value of attribute server_backtrace.
Instance Method Summary collapse
-
#backtrace ⇒ Object
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.
Instance Attribute Details
#server_backtrace ⇒ Object
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
#backtrace ⇒ Object
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 |