public class java.lang
EnumConstantNotPresentException


Show All Login
Java SE 6
  
Extends: Throwable > Exception > RuntimeException
Details
Thrown when an application tries to access an enum constant by name and the enum type contains no constant with the specified name.
since1.5

Constructors
public EnumConstantNotPresentException(Class enumType, String constantName) Details
Constructs an EnumConstantNotPresentException for the specified constant.
enumTypethe type of the missing enum constant
constantNamethe name of the missing enum constant

Methods
public String constantName() Details
Returns the name of the missing enum constant.
returnthe name of the missing enum constant
public Class enumType() Details
Returns the type of the missing enum constant.
returnthe type of the missing enum constant