| |
|
| java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException java.lang.EnumConstantNotPresentException
EnumConstantNotPresentException | public class EnumConstantNotPresentException extends RuntimeException (Code) | | Thrown when an application tries to access an enum constant by name
and the enum type contains no constant with the specified name.
author: Josh Bloch since: 1.5 |
EnumConstantNotPresentException | public EnumConstantNotPresentException(Class<? extends Enum> enumType, String constantName)(Code) | | Constructs an EnumConstantNotPresentException for the
specified constant.
Parameters: enumType - the type of the missing enum constant Parameters: constantName - the name of the missing enum constant |
constantName | public String constantName()(Code) | | Returns the name of the missing enum constant.
the name of the missing enum constant |
enumType | public Class<? extends Enum> enumType()(Code) | | Returns the type of the missing enum constant.
the type of the missing enum constant |
Fields inherited from java.lang.RuntimeException | final static long serialVersionUID(Code)(Java Doc)
|
Fields inherited from java.lang.Exception | final static long serialVersionUID(Code)(Java Doc)
|
|
|
|