站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 1.2.9 API 文档英文版

ConstantException (Spring Framework) - Spring Framework 1.2.9 API 文档英文版


org.springframework.core
Class ConstantException

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 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.04.2003
Author:
Rod Johnson
See Also:
Constants, Serialized Form

Constructor Summary
ConstantException(String className, String namePrefix, Object value)
          Thrown when an invalid constant value is looked up.
ConstantException(String className, String field, String message)
          Thrown when an invalid constant name is requested.
 
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
 

Constructor Detail

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 definitions
field - invalid constant name
message - 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 definitions
namePrefix - prefix of the searched constant names
value - the looked up constant value


Copyright (c) 2002-2007 The Spring Framework Project.