Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Changed the 1st exception example to throw a more specific exception. Changed the 2nd exception example to wrap the troublesome exception when rethrowing it as an unchecked expression (more info is now included in the unchecked exception).

...

Wiki Markup
\[[JLS 05|AA. Java References#JLS 05]\] [Chapter 11, Exceptions|http://java.sun.com/docs/books/jls/third_edition/html/exceptions.html]
\[[Bloch 08|AA. Java References#Bloch 08]\] Item 65: "Don't ignore exceptions", Item 62: "Document all exceptions thrown by each method"
\[[MITRE 09|AA. Java References#MITRE 09]\]  [CWE ID 390|http://cwe.mitre.org/data/definitions/390.html] "Detection of Error Condition Without Action"

...

1112. Exceptional Behavior (EXC)      1112. Exceptional Behavior (EXC)      EXC01-J. Do not allow exceptions to transmit sensitive information