Introduction
Multiple catch blocks let you handle different errors in different ways. This helps your program respond correctly to each problem.
When you want to handle different types of errors separately.
When you want to give specific messages for different problems.
When you want to recover differently depending on the error.
When you want to log errors differently based on their type.