logo

359 Avoid using generic exceptions


Summary

The system should use typified exceptions instead of generic exceptions.


Description

Catching generic exceptions obscures the problem that caused the error and promotes a generic way to handle different categories or sources of error. This may cause security vulnerabilities to materialize, as some special flows go unnoticed.


Supported In

Advanced: True


References


Weaknesses


Last updated

2024/02/05