Inspectopedia Help

'Error' not rethrown

Reports try statements that catch java.lang.Error or any of its subclasses and do not rethrow the error.

Statements that catch java.lang.ThreadDeath are not reported.

Example:

try { executeTests(request); } catch (OutOfMemoryError ex) { // warning: Error 'ex' not rethrown return false; }

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Java, 233.SNAPSHOT

Last modified: 13 July 2023