org.springframework.core
Class ConstantException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
org.springframework.core.ConstantException
- All Implemented Interfaces:
- Serializable
- public class ConstantException
- extends IllegalArgumentException
Exception thrown when the Constants class is asked for an invalid
constant name.
- Since:
- 28-Apr-2003
- Author:
- Rod Johnson
- See Also:
Constants
,
Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
ConstantException
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 definitionsfield
- invalid constant namemessage
- description of the problem
ConstantException
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 definitionsnamePrefix
- prefix of the searched constant namesvalue
- the looked up constant value
Copyright (C) 2003-2004 The Spring Framework Project.