Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Throwing RuntimeException, Exception, or Throwable prevents classes from catching the intended exceptions without catching other unintended exceptions as well.

Rule

Severity

Likelihood

Remediation Cost

Priority

Level

ERR07-J

Low

Likely

Medium

P6

L2

Automated Detection

ToolVersionCheckerDescription
Parasoft Jtest
Include Page
Parasoft_V
Parasoft_V
CODSTD.BP.NTX, EXCEPT.NTERRImplemented
SonarQube
Include Page
SonarQube_V
SonarQube_V
S112
Implemented
Generic exceptions should never be thrown

Related Guidelines

MITRE CWE

CWE-397, Declaration of Throws for Generic Exception

Bibliography

...


...