NAMING.NE
Enforce name format of exceptions
Description
This rule flags any exception that has an unconventional name format.
Most programmers or groups of programmers develop a set of naming rules for exceptions. Jtest will enforce the name format of the exception using a regular expression.
Example
package NAMING;
public class NE extends RuntimeException {
}
Repair
Change the name of the exception to match the regular expression.
|