JAVA-066 / Intermediate
Sensitive information in exception messages
Why is this a problem?
A response may contain text such as "User 'admin' password=...".
How to fix it
java
throw new IllegalStateException("invalid credentials"); // Log only an ID internally for details