saker.java.compiler Documentation TaskDoc JavaDoc Packages
public class EnumerationArrayNotFoundException extends IllegalArgumentException
Common exception superclass for the scenario when an enumeration value in an array 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 enumerations as a comma separated list that was not found.

saker.java.compiler 0.8.8
Constructors
public
Creates a new instance with the specified enum names and the IllegalArgumentException that caused it.
Methods
public IllegalArgumentException
Gets the exception that was received when an enumeration was tried to be looked up.
public String
Gets the enumeration names that was not found in a comma separated format.
Creates a new instance with the specified enum names and the IllegalArgumentException that caused it.
enumnamesThe names of the Enums that was attempted to looked up. This includes ones that was successfully found as well, but include at least one that was not.
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 an 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 names that was not found in a comma separated format.

The returned string contains all enumerations that was attempted to looked up, even successfully retrieved ones.

E.g. EXISTING_ENUM,NOT_FOUND_ENUM,SOME_THIRD_VALUE

Returns the detail message string of this throwable.

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