S
Sonny Chee
Hey Guys,
I would have thought the following two code snippets were equivalent.
However, only the first one will raise err. Can someone explain to me
how I should be 'reading' the 2nd snippet?
rescue Exception => err
begin
RDoc::usage
rescue SystemExit
end
raise err
rescue Exception => err
begin RDoc::usage rescue SystemExit end
raise err
Sonny.
I would have thought the following two code snippets were equivalent.
However, only the first one will raise err. Can someone explain to me
how I should be 'reading' the 2nd snippet?
rescue Exception => err
begin
RDoc::usage
rescue SystemExit
end
raise err
rescue Exception => err
begin RDoc::usage rescue SystemExit end
raise err
Sonny.