UnknownEntityException (Java SE 15 & JDK 15) (original) (raw)

All Implemented Interfaces:

[Serializable](../../../../java.base/java/io/Serializable.html "interface in java.io")

Direct Known Subclasses:

[UnknownAnnotationValueException](element/UnknownAnnotationValueException.html "class in javax.lang.model.element"), [UnknownDirectiveException](element/UnknownDirectiveException.html "class in javax.lang.model.element"), [UnknownElementException](element/UnknownElementException.html "class in javax.lang.model.element"), [UnknownTypeException](type/UnknownTypeException.html "class in javax.lang.model.type")


public class UnknownEntityException extends RuntimeException

Superclass of exceptions which indicate that an unknown kind of entity was encountered. This situation can occur if the language evolves and new kinds of constructs are introduced. Subclasses of this exception may be thrown by visitors to indicate that the visitor was created for a prior version of the language.

API Note:

A common superclass for exceptions specific to different kinds of unknown entities allows a single catch block to easily provide uniform handling of those related conditions.

Since:

1.7

See Also:

UnknownElementException, UnknownAnnotationValueException, UnknownTypeException, Serialized Form

Constructors

Modifier Constructor Description
protected UnknownEntityException​(String message) Creates a new UnknownEntityException with the specified detail message.

Methods declared in class java.lang.Throwable

[addSuppressed](../../../../java.base/java/lang/Throwable.html#addSuppressed%28java.lang.Throwable%29), [fillInStackTrace](../../../../java.base/java/lang/Throwable.html#fillInStackTrace%28%29), [getCause](../../../../java.base/java/lang/Throwable.html#getCause%28%29), [getLocalizedMessage](../../../../java.base/java/lang/Throwable.html#getLocalizedMessage%28%29), [getMessage](../../../../java.base/java/lang/Throwable.html#getMessage%28%29), [getStackTrace](../../../../java.base/java/lang/Throwable.html#getStackTrace%28%29), [getSuppressed](../../../../java.base/java/lang/Throwable.html#getSuppressed%28%29), [initCause](../../../../java.base/java/lang/Throwable.html#initCause%28java.lang.Throwable%29), [printStackTrace](../../../../java.base/java/lang/Throwable.html#printStackTrace%28%29), [printStackTrace](../../../../java.base/java/lang/Throwable.html#printStackTrace%28java.io.PrintStream%29), [printStackTrace](../../../../java.base/java/lang/Throwable.html#printStackTrace%28java.io.PrintWriter%29), [setStackTrace](../../../../java.base/java/lang/Throwable.html#setStackTrace%28java.lang.StackTraceElement%5B%5D%29), [toString](../../../../java.base/java/lang/Throwable.html#toString%28%29)