throw
statement
that throws an inappropriate exception, for example an overly generic one, such as
java.lang.Exception
or java.io.IOException
.
Example:
void setup(Mode mode) {
if (mode == null)
throw new RuntimeException("Problem during setup"); // warning: Prohibited exception 'RuntimeException' thrown
...
}
Use the Prohibited exceptions list to specify which exceptions should be reported.