Versions Compared

Key

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

...

DivideByZeroException is a custom exception type that extends Exception.

Exceptions

Wiki Markup
*EXC14-EX1*: A secure application must also abide by guideline [EXC06-J. Do not allow exceptions to transmit sensitive information]. To follow this ruleguideline, an application might find it necessary to catch all exceptions at some top-level to sanitize (or suppress) them. This is also summarized in the CWE entries, [CWE 7|http://cwe.mitre.org/data/definitions/7.html] and [CWE 388|http://cwe.mitre.org/data/definitions/388.html]. If exceptions need to be caught, it is better to catch {{Throwable}} instead of {{Exception}} \[[Roubtsov 2003|AA. Bibliography#Roubtsov 03]\].

Wiki Markup
*EXC14-EX2*: Task processing threads such as worker threads in a thread pool or the swing event dispatch thread are allowed to catch {{RuntimeException}} when they call untrusted code through an abstraction such as {{Runnable}} \[[Goetz 2006 pg 161|AA. Bibliography#Goetz 06]\]. 

...

Catching RuntimeException traps several types of exceptions not intended to be caught. This prevents them from being handled properly.

Rule Guideline

Severity

Likelihood

Remediation Cost

Priority

Level

EXC14-J

low

likely

medium

P6

L2

...