mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-08 03:29:08 +07:00
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
17 lines
611 B
HTML
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> |