com.sun.n1.util.enum
Class NoSuchEnumException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.IllegalArgumentException
                  extended by com.sun.n1.util.enum.NoSuchEnumException
All Implemented Interfaces:
java.io.Serializable

public class NoSuchEnumException
extends java.lang.IllegalArgumentException

Exception class indicating that an enum lookup failed. The mesage code associated with exception of this type is MSG_NO_SUCH_ENUM.

See Also:
Serialized Form

Field Summary
static java.lang.String MSG_NO_SUCH_ENUM
          The message code associated with exceptions of this type.
 
Constructor Summary
NoSuchEnumException(int value)
          Creates an new exception indicating that an enum lookup by int value failed.
NoSuchEnumException(java.lang.String value)
          Creates an new exception indicating that an enum lookup by string value failed.
 
Method Summary
 
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

MSG_NO_SUCH_ENUM

public static final java.lang.String MSG_NO_SUCH_ENUM
The message code associated with exceptions of this type.

See Also:
Constant Field Values
Constructor Detail

NoSuchEnumException

public NoSuchEnumException(java.lang.String value)
Creates an new exception indicating that an enum lookup by string value failed.

Parameters:
value - the value for which no enum could be found.

NoSuchEnumException

public NoSuchEnumException(int value)
Creates an new exception indicating that an enum lookup by int value failed.

Parameters:
value - the value for which no enum could be found.