Inspectopedia
 
2024.3

Unchecked exception declared in 'throws' clause

Warning
New
Last modified: 03 December 2024

Reports declaration of an unchecked exception (java.lang.RuntimeException or one of its subclasses) in the throws clause of a method.

Declarations of unchecked exceptions are not required and may be deleted or moved to a Javadoc @throws tag.

Example: