public class

ConstantException

extends IllegalArgumentException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ java.lang.IllegalArgumentException
           ↳ org.springframework.core.ConstantException

Class Overview

Exception thrown when the Constants class is asked for an invalid constant name.

See Also

Summary

Public Constructors
ConstantException(String className, String field, String message)
Thrown when an invalid constant name is requested.
ConstantException(String className, String namePrefix, Object value)
Thrown when an invalid constant value is looked up.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

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

Also: SpringCore

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

public ConstantException (String className, String namePrefix, Object value)

Also: SpringCore

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