Introduction
Error handling uses rescue to catch problems in your code so the program can keep running without crashing.
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.