diff options
author | Jeremy Evans <code@jeremyevans.net> | 2019-08-11 19:42:59 -0700 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2019-08-12 09:56:35 -0700 |
commit | 404850e13446c79fb6142f1b32b219753e5cd726 (patch) | |
tree | 7ad5ca7ffdf16a25171231df802f5d03ee94b7be | |
parent | 3979f22cc1a224bad5b8f14610db253660aa974c (diff) | |
download | bundler-404850e13446c79fb6142f1b32b219753e5cd726.tar.gz |
Remove documentation that fatal cannot be rescued [ci skip]
You can rescue it:
f = ObjectSpace.each_object(Class){|c| break c if c.name == 'fatal'}
begin
raise f
rescue f
2
end # => 2
It's not a good idea to rescue fatal exceptions you didn't generate
yourself, though.
Fixes [Bug #10691]
-rw-r--r-- | error.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2360,7 +2360,7 @@ syserr_eqq(VALUE self, VALUE exc) * Document-class: fatal * * fatal is an Exception that is raised when Ruby has encountered a fatal - * error and must exit. You are not able to rescue fatal. + * error and must exit. */ /* |