Introduction
Begin/rescue/end blocks help your program handle errors without crashing. They let you try code and catch problems if they happen.
When reading a file that might not exist.
When dividing numbers and the divisor could be zero.
When connecting to the internet and the connection might fail.
When converting user input to a number that might be invalid.