When writing tests, you can use directly "Exception" rather than specifying it each time. If an exception is not expected in the test (and consequently explicitly caught in the test), we can consider it as an error, whatever the exception. Note that it is just faster and more convenient than writing all of them.