Handle subclasses of Exception in drb
This makes it so that client instances that call a method on a server-side object that raise a subclass of Exception are handled similarly to those that raise a subclass of StandardError. Only reraise exceptions that we are fairly sure we don't want to rescue. Fixes [Bug #5618]
This commit is contained in:
parent
2993b24a1e
commit
50b8033d6b
Notes:
git
2019-10-17 04:51:35 +09:00
@ -1701,7 +1701,9 @@ module DRb
|
||||
end
|
||||
end
|
||||
return @succ, @result
|
||||
rescue StandardError, ScriptError, Interrupt
|
||||
rescue NoMemoryError, SystemExit, SystemStackError, SecurityError
|
||||
raise
|
||||
rescue Exception
|
||||
@result = $!
|
||||
return @succ, @result
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user