Introduction
A try-catch block helps your program handle errors without stopping. It lets you try some code and catch problems if they happen.
When reading a file that might not exist.
When asking for data from the internet that might fail.
When converting user input that might be wrong.
When running code that depends on other code working right.