saker.java.compiler Documentation TaskDoc JavaDoc Packages
public class EnumerationNotFoundException extends IllegalArgumentException
Common exception superclass for the scenario when an enumeration value cannot be found in the current JVM.

Exceptions of this type can be thrown if the enumeration value that is needed is not found in the current JVM. This can happen when some code is running on a more recent Java version and needs to communicate with an older version. In cases when new enumeration values are introduced, they won't be found in the older JVM, therefore this exception is thrown by the handling code.

The message returns the name of the enumeration that was not found.

saker.java.compiler 0.8.8
Constructors
public
Creates a new instance with the specified enum name and the IllegalArgumentException that caused it.
Methods
public IllegalArgumentException
Gets the exception that was received when the enumeration was tried to be looked up.
public String
Gets the enumeration name that was not found.
Creates a new instance with the specified enum name and the IllegalArgumentException that caused it.
enumnameThe name of the Enum that was not found.
causeThe exception that was thrown when the enumeration was not found. It is the one thrown by Enum.valueOf(Class<T>, String) or other more specific Enum.valueOf methods.
NullPointerExceptionIf any of the arguments are null.
Gets the exception that was received when the enumeration was tried to be looked up.

The exception is directly thrown by Enum.valueOf(Class<T>, String) or other more specific Enum.valueOf methods.

Returns the cause of this throwable or null if the cause is nonexistent or unknown.(The cause is the throwable that caused this throwable to get thrown.)

This implementation returns the cause that was supplied via one of the constructors requiring a Throwable, or that was set after creation with the initCause(Throwable) method. While it is typically unnecessary to override this method, a subclass can override it to return a cause set by some other means. This is appropriate for a "legacy chained throwable" that predates the addition of chained exceptions to Throwable. Note that it is not necessary to override any of the PrintStackTrace methods, all of which invoke the getCause method to determine the cause of a throwable.

the cause of this throwable or null if the cause is nonexistent or unknown.
Gets the enumeration name that was not found.

Returns the detail message string of this throwable.

the detail message string of this Throwable instance (which may be null).