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 { }