Build 1.0_r1(from source)

java.lang
Class EnumConstantNotPresentException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.EnumConstantNotPresentException
All Implemented Interfaces:
Serializable

public class EnumConstantNotPresentException
extends RuntimeException

Indicates that an enum constant does not exist for a particular name.

Since:
1.5
See Also:
Serialized Form

Constructor Summary
EnumConstantNotPresentException(Class<? extends Enum> enumType, String constantName)
           Constructs an instance for the passed enum and constant name.
 
Method Summary
 String constantName()
           The name of the constant missing.
 Class<? extends Enum> enumType()
           The enum type from which the constant name is missing.
 
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

EnumConstantNotPresentException

public EnumConstantNotPresentException(Class<? extends Enum> enumType,
                                       String constantName)

Constructs an instance for the passed enum and constant name.

Parameters:
enumType - The enum type.
constantName - The missing constant name.
Method Detail

enumType

public Class<? extends Enum> enumType()

The enum type from which the constant name is missing.

Returns:
A Class instance.

constantName

public String constantName()

The name of the constant missing.

Returns:
A String instance.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature