Reports a method that declares an inappropriate exception, such as
a throws clause that declares an overly generic exception (for example java.lang.Exception or java.lang.Throwable).
Example:
void describeModule(String module) throws Exception {} // warning: Prohibited exception 'Exception' declared
Configure the inspection:
- Use the Prohibited exceptions list to specify which exceptions should be reported.
- Use the Ignore exceptions declared on methods overriding a library method option to ignore exceptions declared by methods
that override a library method.