過度に広範な例外をキャッチすることは、セキュリティの脆弱性を含む可能性が高い複雑なエラー処理コードを促進する。
しかし、Exceptionのような高レベルのクラスをキャッチすることで、キャッチブロックを「凝縮」すると、特別な扱いに値する例外や、プログラムのこの時点でキャッチすべきでない例外が見えなくなってしまいます。また、プログラムが成長して新しい例外型を投げるようになると、特に危険です。新しい例外型には注意が払われない。
Catching overly broad exceptions promotes complex error handling code that is more likely to contain security vulnerabilities.
Multiple catch blocks can get ugly and repetitive, but "condensing" catch blocks by catching a high-level class like Exception can obscure exceptions that deserve special treatment or that should not be caught at this point in the program. Catching an overly broad exception essentially defeats the purpose of a language's typed exceptions, and can become particularly dangerous if the program grows and begins to throw new types of exceptions. The new exception types will not receive any attention.