Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: xref ERR06-J

...

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
bgColor#FFCCCC
try {
  //...
} catch (IOException ioe) { 
  ioe.printStacktrace();
}

...