org.springframework.core

## 类 Constants.ConstantException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.lang.RuntimeException
      - - java.lang.IllegalArgumentException
        - - org.springframework.core.Constants.ConstantException

- 所有已实现的接口:
    Serializable
  封闭类:
    Constants

      public static class Constants.ConstantException
      extends IllegalArgumentException

  Exception thrown when the `Constants` class is asked for an invalid constant name.
  另请参阅:
    序列化表格

- - ### 构造器概要

    构造器
    构造器和说明
    `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.

  - ### 方法概要

    - ### 从类继承的方法 java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### 构造器详细资料

    - #### ConstantException

          public ConstantException(String className,
                                   String field,
                                   String message)

      Thrown when an invalid constant name is requested.
      参数:
        `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.
      参数:
        `className` - name of the class containing the constant definitions
        `namePrefix` - prefix of the searched constant names
        `value` - the looked up constant value