Inspectopedia
 
2024.3

Exception used for local control-flow

Warning
Code Style
New
Last modified: 03 December 2024

Reports a throw statement whose exceptions are always caught by the containing try statement. Using throw statements as a goto to change the local flow of control is confusing.