diff --git a/lib/drb/drb.rb b/lib/drb/drb.rb index 4c46909500..a11a5bbf2d 100644 --- a/lib/drb/drb.rb +++ b/lib/drb/drb.rb @@ -430,12 +430,15 @@ module DRb end end + # An exception wrapping an error object class DRbRemoteError < DRbError def initialize(error) @reason = error.class.to_s super("#{error.message} (#{error.class})") set_backtrace(error.backtrace) end + + # the class of the error, as a string. attr_reader :reason end