Ruby - Error Handling
Find the problem in this Ruby code:
begin raise rescue puts 'Error rescued' end
begin raise rescue puts 'Error rescued' end
raise without arguments re-raises the last exception inside a rescue block.raise is called outside any rescue block, so it causes a RuntimeError.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions