java.lang
public class EnumConstantNotPresentException extends RuntimeException
Since: 1.5
Constructor Summary | |
---|---|
EnumConstantNotPresentException(Class<? extends Enum> theEnum, String name)
Create a new EnumConstantNotPresentException with the indicated
enum type and enum constant name. |
Method Summary | |
---|---|
String | constantName()
Return the name of the missing constant. |
Class<? extends Enum> | enumType()
Return the enum type which is missing a constant. |
Parameters: theEnum the enum's class name the name of the missing enum constant
Returns: the name of the missing constant
Returns: the enum type which is missing a constant