Introduction
We test multiple exceptions to check that our code handles different error cases correctly. This helps catch bugs and makes the program more reliable.
When a method can throw different exceptions for different problems.
When you want to verify that your code throws the right exception for each error.
When you want to make sure your error handling works for all expected failure cases.