Inspectopedia
 
2024.3

Prohibited exception thrown

Warning
New
Last modified: 03 December 2024

Reports throw statements that throw an inappropriate exception. For example an exception can be inappropriate because it is overly generic, such as java.lang.Exception or java.io.IOException.

Example:

Use the Prohibited exceptions list to specify which exceptions should be reported.