Exception: DRb::DRbRemoteError

Inherits:
DRbError
  • Object
show all
Defined in:
lib/opal/drb/drb.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ DRbRemoteError

Returns a new instance of DRbRemoteError.



22
23
24
25
26
# File 'lib/opal/drb/drb.rb', line 22

def initialize(error)
  @reason = error.class.to_s
  super("#{error.message} (#{error.class})")
  set_backtrace(error.backtrace)
end

Instance Attribute Details

#reasonObject (readonly)

Returns the value of attribute reason.



28
29
30
# File 'lib/opal/drb/drb.rb', line 28

def reason
  @reason
end