Skip to content

Files

Latest commit

 

History

History
30 lines (17 loc) · 516 Bytes

NestedTryDepth.md

File metadata and controls

30 lines (17 loc) · 516 Bytes

Pattern: Too many nested try-catch-finally blocks

Issue: -

Description

Restricts nested try blocks to a specified depth (default = 1).

Examples

To configure the check:

<module name="NestedTryDepth"/>

To configure the check to allow nesting depth 3:

<module name="NestedTryDepth">
    <property name="max" value="3"/>
</module>

Further Reading