Inspectopedia Help

Non-exception class name ends with 'Exception'

Reports non-exception classes whose names end with Exception.

Such classes may cause confusion by breaking a common naming convention and often indicate that the extends Exception clause is missing.

Example:

public class NotStartedException {}

A quick-fix that renames such classes is available only in the editor.

Inspection Details

By default bundled with:

IntelliJ IDEA 2024.1, Qodana for JVM 2024.1,

Can be installed with plugin:

Java, 241.14841

Last modified: 12 March 2024