public enum ErrorType extends Enum<ErrorType>
| Enum Constant and Description |
|---|
ABSTRACT_METHOD
The referenced method is not implemented in the class but the class is declared to implement
the method.
|
CLASS_NOT_FOUND
The target class of the symbol reference is not found in the class path.
|
INACCESSIBLE_CLASS
The target class of the symbol reference is inaccessible to the source class.
|
INACCESSIBLE_MEMBER
The target member (method or field) is inaccessible to the source class.
|
INCOMPATIBLE_CLASS_CHANGE
The referenced class or interface found in the class path is not binary-compatible with the
source class.
|
SYMBOL_NOT_FOUND
For a method or field reference, the symbol is not found in the target class.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getMessage(String subject)
Returns a human-friendly message explaining the error of
subject. |
static ErrorType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorType CLASS_NOT_FOUND
public static final ErrorType INCOMPATIBLE_CLASS_CHANGE
An example case of breaking binary-compatibility is when a superclass changes a method to
final and a subclass is still overriding the method. Another example is when there is a
method call to an interface and the interface is changed to a class with the same name.
public static final ErrorType ABSTRACT_METHOD
AbstractMethodError in runtime.public static final ErrorType INACCESSIBLE_CLASS
If the source class is in a different package, the class or one of its enclosing types is not public. If the source class is in the same package, the class or one of its enclosing types is private.
public static final ErrorType INACCESSIBLE_MEMBER
If the source class is in a different package, the member is not public. If the source is in the same package, the class is private. If the source is a subclass of the target class, the member is not protected or public.
public static final ErrorType SYMBOL_NOT_FOUND
public static ErrorType[] values()
for (ErrorType c : ErrorType.values()) System.out.println(c);
public static ErrorType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2018–2020 Google LLC.. All rights reserved.