From 404850e13446c79fb6142f1b32b219753e5cd726 Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Sun, 11 Aug 2019 19:42:59 -0700 Subject: 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] --- error.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/error.c b/error.c index 8834100cfd..90a9c44939 100644 --- a/error.c +++ b/error.c @@ -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. */ /* -- cgit v1.2.3