Ruby - Error Handling
What does the
rescue keyword do inside a begin/rescue/end block in Ruby?rescue keyword do inside a begin/rescue/end block in Ruby?begin blockbegin block contains code that might raise an error.rescue doesrescue keyword catches exceptions raised in the begin block and allows handling them gracefully.begin block -> Option D15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions