## 类的使用
org.springframework.core.Constants.ConstantException

- 使用Constants.ConstantException的程序包
  程序包 | 说明
  --- | ---
  org.springframework.core | Provides basic classes for exception handling and version detection, and other core helpers that are not specific to any part of the framework.

- - ### org.springframework.core中Constants.ConstantException的使用

    抛出Constants.ConstantException的org.springframework.core中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `Number` | Constants.`asNumber(String code)` Return a constant value cast to a Number.
    `Object` | Constants.`asObject(String code)` Parse the given String (upper or lower case accepted) and return the appropriate value if it's the name of a constant field in the class that we're analysing.
    `String` | Constants.`asString(String code)` Return a constant value as a String.
    `String` | Constants.`toCode(Object value, String namePrefix)` Look up the given value within the given group of constants.
    `String` | Constants.`toCodeForProperty(Object value, String propertyName)` Look up the given value within the group of constants for the given bean property name.
    `String` | Constants.`toCodeForSuffix(Object value, String nameSuffix)` Look up the given value within the given group of constants.