mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
RDoc from Hugh Sasse [ruby-core:8012]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a6db3fc7b8
commit
905cd041c9
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue