...
Compliant solutions must ensure that security exceptions such as java.security.AccessControlException
and java.lang.SecurityException
continue to be logged and sanitized appropriately. See guideline VOID ERR03ERR07-J. Use a logging API to log critical security exceptionsPrevent exceptions while logging data for additional information. The MyExceptionReporter
class from guideline ERR01ERR00-J. Use a class dedicated to reporting Do not suppress or ignore checked exceptions demonstrates an acceptable approach for this logging and sanitization.
...