|
Java™ Platform Standard Ed. 6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException java.lang.EnumConstantNotPresentException
public class EnumConstantNotPresentException
Thrown when an application tries to access an enum constant by name and the enum type contains no constant with the specified name.
Constructor Summary | |
---|---|
EnumConstantNotPresentException(Class<? extends Enum> enumType,
String constantName)
Constructs an EnumConstantNotPresentException for the specified constant. |
Method Summary | |
---|---|
String |
constantName()
Returns the name of the missing enum constant. |
Class<? extends Enum> |
enumType()
Returns the type of the missing enum constant. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EnumConstantNotPresentException(Class<? extends Enum> enumType, String constantName)
enumType
- the type of the missing enum constantconstantName
- the name of the missing enum constantMethod Detail |
---|
public Class<? extends Enum> enumType()
public String constantName()
|
Java™ Platform Standard Ed. 6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1993, 2010, Oracle and/or its affiliates. All rights reserved.