Inspectopedia Help

'throw' inside 'finally' block

Reports throw statements inside finally blocks.

While occasionally intended, such throw statements may conceal exceptions thrown from try-catch and thus tremendously complicate the debugging process.

Inspection options

Option

Type

Default

Warn everywhere declared exceptions may be thrown

Checkbox

false

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Java, 233.SNAPSHOT

Last modified: 13 July 2023