Files
2025-02-05 04:43:28 +00:00

17 lines
611 B
HTML

<html>
<body>
Reports <code>throw</code> statements that throw an inappropriate exception.
For example an exception can be inappropriate because it is overly generic,
such as <code>java.lang.Exception</code> or <code>java.io.IOException</code>.
<p><b>Example:</b></p>
<pre><code>
void setup(Mode mode) {
if (mode == null)
throw new RuntimeException("Problem during setup"); // warning: Prohibited exception 'RuntimeException' thrown
...
}
</code></pre>
<!-- tooltip end -->
<p>Use the <b>Prohibited exceptions</b> list to specify which exceptions should be reported.<p>
</body>
</html>