mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 03:21:12 +07:00
18 lines
443 B
HTML
18 lines
443 B
HTML
<html>
|
|
<body>
|
|
Reports <code>try</code> statements that catch
|
|
<code>java.lang.Error</code> or any of its subclasses and do not rethrow the error.
|
|
<p>Statements that catch <code>java.lang.ThreadDeath</code> are not
|
|
reported.</p>
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
try {
|
|
executeTests(request);
|
|
}
|
|
catch (OutOfMemoryError ex) { // warning: Error 'ex' not rethrown
|
|
return false;
|
|
}
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
</body>
|
|
</html> |