mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
18 lines
778 B
HTML
18 lines
778 B
HTML
<html>
|
|
<body>
|
|
Reports methods that declare an inappropriate exception in their <code>throws</code> clause.
|
|
For example an exception can be inappropriate because it is overly generic,
|
|
such as <code>java.lang.Exception</code> or <code>java.lang.Throwable</code>.
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
void describeModule(String module) throws Exception {} // warning: Prohibited exception 'Exception' declared
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
<p>Configure the inspection:</p>
|
|
<ul>
|
|
<li>Use the <b>Prohibited exceptions</b> list to specify which exceptions should be reported.</li>
|
|
<li>Use the <b>Ignore exceptions declared on methods overriding a library method</b> option to ignore exceptions declared by methods
|
|
that override a library method.</li>
|
|
</ul>
|
|
</body>
|
|
</html> |