Skip to content
Esc
↑↓navigate↵open⌘Jpreview
On this page

lint/control-flow/no-empty-catch

In the code-quality set. Report only. Intent: correctness.

What it does

Report an empty catch block, which swallows the exception.

Configuration

[lint.rules]
"control-flow/no-empty-catch" = "error"

To skip it in some files or lines, add an override or an ignore comment.

Replaces

More lint/control-flow rules · Edit this page

Last updated on

Was this page helpful?