public class EnumConstantNotPresentException extends RuntimeException
AnnotatedElement , Serialized Form
| Constructor and Description |
|---|
EnumConstantNotPresentException(类<? extends Enum> enumType, String constantName)
为指定的常量构造一个
EnumConstantNotPresentException 。
|
| Modifier and Type | Method and Description |
|---|---|
String |
constantName()
返回缺少的枚举常量的名称。
|
类<? extends Enum> |
enumType()
返回缺少的枚举常量的类型。
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString