Exception: DRb::DRbRemoteError

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

Overview

An exception wrapping an error object

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ DRbRemoteError

Creates a new remote error that wraps the Exception error



435
436
437
438
439
# File 'lib/drb/drb.rb', line 435

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

Instance Attribute Details

#reasonObject (readonly)

the class of the error, as a string.



442
443
444
# File 'lib/drb/drb.rb', line 442

def reason
  @reason
end