Inspectopedia Help

Try statement issues

'continue' or 'break' inside 'finally' block   New in this release

Reports a break or continue statement inside a finally block.

'return' inside 'finally' block   New in this release

Reports a return statement inside a finally block.

'throw' inside 'finally' block   New in this release

Reports s throw statement inside a finally block.

Empty 'catch' block   New in this release

Reports an empty catch block.

Empty 'finally' block   New in this release

Reports an empty finally block, which usually indicates an error.

Empty 'try' block   New in this release

Reports an empty try block, which usually indicates an error.

Exception used for local control-flow   New in this release

Reports a throw statement whose exceptions are always caught by the containing try statement.

Unused 'catch' parameter   New in this release

Reports a catch parameter that is not used in the corresponding block.

Last modified: 11 September 2024