Files
openide/java/java-impl/resources/inspectionDescriptions/ThrowsRuntimeException.html
Leonid Shalupov 40795fe787 IJI-2422: community/java: move resources under resources root
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
2025-02-05 04:43:28 +00:00

16 lines
615 B
HTML

<html>
<body>
Reports declaration of an unchecked exception (<code>java.lang.RuntimeException</code> or one of its subclasses) in the <code>throws</code>
clause of a method.
<p>Declarations of unchecked exceptions are not required and may be deleted or moved to a Javadoc <code>@throws</code> tag.</p>
<p><b>Example:</b></p>
<pre><code>
public class InvalidDataException extends RuntimeException {}
class TextEditor {
void readSettings() throws InvalidDataException {} // warning: Unchecked exception 'InvalidDataException' declared in 'throws' clause
}
</code></pre>
<!-- tooltip end -->
</body>
</html>