small patch for drb/drb.rb.
Hugh Sasse <[email protected]>
| Newsgroups | gmane.comp.lang.ruby.documentation |
|---|---|
| Message-ID | <[email protected]> |
While trying to understand drb more deeply I created this patch
This was shortly after a cvs update -d. I'm not sure why the
timestamp of the original is so new. Maybe I need another option
to cvs or cvs update. Anyway, hope it helps.
Hugh
--- lib/drb/drb.rb 2006-06-16 15:22:20.844390000 +0100
+++ lib/drb/drb_new.rb 2006-06-16 15:50:39.285669000 +0100
@@ -430,12 +430,15 @@
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