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
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.