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.