Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » core » [javadoc | source]
org.springframework.core
public class: ConstantException [javadoc | source]
java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         java.lang.RuntimeException
            java.lang.IllegalArgumentException
               org.springframework.core.ConstantException

All Implemented Interfaces:
    Serializable

Exception thrown when the Constants class is asked for an invalid constant name.
Constructor:
 public ConstantException(String className,
    String field,
    String message) 
    Thrown when an invalid constant name is requested.
    Parameters:
    className - name of the class containing the constant definitions
    field - invalid constant name
    message - description of the problem
 public ConstantException(String className,
    String namePrefix,
    Object value) 
    Thrown when an invalid constant value is looked up.
    Parameters:
    className - name of the class containing the constant definitions
    namePrefix - prefix of the searched constant names
    value - the looked up constant value
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait