123456789_123456789_123456789_123456789_123456789_

Exception: DRb::DRbRemoteError

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, DRbError, RuntimeError
Instance Chain:
self, DRbError, RuntimeError
Inherits: DRb::DRbError
Defined in: lib/drb/drb.rb

Overview

An exception wrapping an error object

Class Method Summary

Instance Attribute Summary

  • #reason readonly

    the class of the error, as a string.

Constructor Details

.new(error) ⇒ DRbRemoteError

Creates a new remote error that wraps the Exception error

[ GitHub ]

  
# File 'lib/drb/drb.rb', line 434

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

Instance Attribute Details

#reason (readonly)

the class of the error, as a string.

[ GitHub ]

  
# File 'lib/drb/drb.rb', line 441

attr_reader :reason