
resources.report.rules.pmd.DoNotExtendJavaLangError.html Maven / Gradle / Ivy
DoNotExtendJavaLangError
DoNotExtendJavaLangError
[
Errors are system exceptions. Do not extend them.
This rule is defined by the following XPath expression:
//ClassOrInterfaceDeclaration/ExtendsList/ClassOrInterfaceType
[@Image="Error" or @Image="java.lang.Error"]
Example:
public class Foo extends Error { }
© 2015 - 2025 Weber Informatics LLC | Privacy Policy