- 24 Nov, 2016 1 commit
-
-
Jean-Francois Leveque authored
-
- 08 Nov, 2016 2 commits
-
-
Vulnerability : Define and throw a dedicated exception instead of using a generic one. Using such generic exceptions as Error, RuntimeException, Throwable, and Exception prevents calling methods from handling true, system-generated exceptions differently than application-generated errors. Noncompliant Code Example public void foo(String bar) throws Throwable { // Noncompliant throw new RuntimeException("My Message"); // Noncompliant } Compliant Solution public void foo(String bar) { throw new MyOwnRuntimeException("My Message"); }
Jean-Francois Leveque authored -
JR Utily authored
-