org.springframework.core
Class ConstantException
java.lang.Object
   java.lang.Throwable
java.lang.Throwable
       java.lang.Exception
java.lang.Exception
           java.lang.RuntimeException
java.lang.RuntimeException
               java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
                   org.springframework.core.ConstantException
org.springframework.core.ConstantException
- All Implemented Interfaces: 
- java.io.Serializable
- public class ConstantException- extends java.lang.IllegalArgumentException
Exception thrown when the Constants class is asked for an invalid
 constant name.
- Since:
- 28-Apr-2003
- Version:
- $Id: ConstantException.java,v 1.2 2004/03/18 02:46:06 trisberg Exp $
- Author:
- Rod Johnson
- See Also:
- Constants, 
Serialized Form
| Constructor Summary | 
| ConstantException(java.lang.Class clazz,
                  java.lang.String namePrefix,
                  java.lang.Object value)Thrown when an invalid constant value is looked up.
 | 
| ConstantException(java.lang.Class clazz,
                  java.lang.String field,
                  java.lang.String message)Thrown when an invalid constant name is requested.
 | 
 
| 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 | 
 
ConstantException
public ConstantException(java.lang.Class clazz,
                         java.lang.String field,
                         java.lang.String message)
- Thrown when an invalid constant name is requested.
 
- Parameters:
- clazz- class containing the constant definitions
- field- invalid constant name
- message- description of the problem
ConstantException
public ConstantException(java.lang.Class clazz,
                         java.lang.String namePrefix,
                         java.lang.Object value)
- Thrown when an invalid constant value is looked up.
 
- Parameters:
- clazz- class containing the constant definitions
- namePrefix- prefix of the searched constant names
- value- the looked up constant value
Copyright (C) 2003-2004 The Spring Framework Project.