Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.lang
Class EnumConstantNotPresentException  view EnumConstantNotPresentException download EnumConstantNotPresentException.java

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

public class EnumConstantNotPresentException
extends RuntimeException

An exception of this type is thrown when a symbolic reference is made to an enum constant which does not exist.

Since:
1.5

Nested Class Summary
 
Nested classes inherited from class java.lang.Throwable
 
Field Summary
private  String constantName
          The name of the missing enum constant.
private  Class enumType
          The enum's type.
private static long serialVersionUID
           
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
EnumConstantNotPresentException(Class theEnum, String name)
          Create a new EnumConstantNotPresentException with the indicated enum type and enum constant name.
 
Method Summary
 String constantName()
          Return the name of the missing constant.
 Class enumType()
          Return the enum type which is missing a 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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

enumType

private Class enumType
The enum's type. Note that the name is fixed by the serialization spec.


constantName

private String constantName
The name of the missing enum constant. Note that the name is fixed by the serialization spec.

Constructor Detail

EnumConstantNotPresentException

public EnumConstantNotPresentException(Class theEnum,
                                       String name)
Create a new EnumConstantNotPresentException with the indicated enum type and enum constant name.

Method Detail

constantName

public String constantName()
Return the name of the missing constant.


enumType

public Class enumType()
Return the enum type which is missing a constant.