Back to Intellij Community

NonExceptionNameEndsWithException

java/java-impl/resources/inspectionDescriptions/NonExceptionNameEndsWithException.html

2025.3-rc-2336 B
Original Source

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.