C-sharp : Error handling: generic exception
Classification
OWASP ASVS Error Handling and Logging PCI DSS 4.0 6.2.4 CWE CWE-396 CWE-397Overview
The application generates an exception of a general type (Exception
or ApplicationException
) making it difficult to diagnose and recover from errors.
It is recommended to take full advantage of the C@ exception mechanism for error handling, which allows to accurately determine the type of exception in order to then process it in the proper catch-block.