summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/drb/drb.rb3
1 files changed, 3 insertions, 0 deletions
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