public class ConstantException extends IllegalArgumentException
Constants class is asked for
an invalid constant name.Constants,
Serialized Form| Constructor and Description |
|---|
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.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic 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