java.lang
public class EnumConstantNotPresentException extends RuntimeException
Constructor and Description |
---|
EnumConstantNotPresentException(Class<? extends Enum> theEnum,
String name)
Create a new EnumConstantNotPresentException with the indicated
enum type and enum constant name.
|
Modifier and Type | Method and Description |
---|---|
String |
constantName()
Return the name of the missing constant.
|
Class<? extends Enum> |
enumType()
Return the enum type which is missing a constant.
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public EnumConstantNotPresentException(Class<? extends Enum> theEnum, String name)
theEnum
- the enum's classname
- the name of the missing enum constantpublic String constantName()