Exceptional Behavior (ERR)
Rules
- ERR00-J. Do not suppress or ignore checked exceptions
- ERR01-J. Do not allow exceptions to expose sensitive information
- ERR02-J. Prevent exceptions while logging data
- ERR03-J. Restore prior object state on method failure
- ERR04-J. Do not complete abruptly from a finally block
- ERR05-J. Do not let checked exceptions escape from a finally block
- ERR06-J. Do not throw undeclared checked exceptions
- ERR07-J. Do not throw RuntimeException, Exception, or Throwable
- ERR08-J. Do not catch NullPointerException or any of its ancestors
- ERR09-J. Do not allow untrusted code to terminate the JVM
Risk Assessment Summary
| Rule | Severity | Likelihood | Detectable | Repairable | Priority | Level |
|---|---|---|---|---|---|---|
| ERR00-J | Low | Probable | Yes | No | P4 | L3 |
| ERR01-J | Medium | Probable | No | Yes | P8 | L2 |
| ERR02-J | Medium | Likely | Yes | No | P12 | L1 |
| ERR03-J | Low | Probable | No | No | P2 | L3 |
| ERR04-J | Low | Probable | Yes | Yes | P6 | L2 |
| ERR05-J | Low | Unlikely | Yes | No | P2 | L3 |
| ERR06-J | Low | Unlikely | No | No | P1 | L3 |
| ERR07-J | Low | Likely | Yes | No | P6 | L2 |
| ERR08-J | Medium | Likely | Yes | No | P12 | L1 |
| ERR09-J | Low | Unlikely | No | No | P1 | L3 |


