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: