...
Printing the exception's stack trace can be useful for debugging purposes but results in program execution that is equivalent to suppressing the exception. Printing the stack trace can also result in unintentionally leaking information about the structure and state of the process to an attacker, see ERR06-J. Do not allow exceptions to expose sensitive information for more information.
Code Block | ||
---|---|---|
| ||
try { //... } catch (IOException ioe) { ioe.printStacktrace(); } |
...