public static class Constants.ConstantException extends IllegalArgumentException
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.
|
public ConstantException(String className, String field, String message)
className - name of the class containing the constant definitionsfield - invalid constant namemessage - description of the problempublic ConstantException(String className, String namePrefix, Object value)
className - name of the class containing the constant definitionsnamePrefix - prefix of the searched constant namesvalue - the looked up constant value