org.jminor.common.model.valuemap.exception
Class ValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.jminor.common.model.valuemap.exception.ValidationException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- NullValidationException, RangeValidationException
public class ValidationException
- extends Exception
An exception used to indicate that an invalid value is being associated with a key.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
ValidationException
public ValidationException(String message)
- Instantiates a new ValidationException.
- Parameters:
message
- the exception message
ValidationException
public ValidationException(Object key,
Object value,
String message)
- Instantiates a new ValidationException.
- Parameters:
key
- the key of the value being validatedvalue
- the valuemessage
- the exception message
getKey
public final Object getKey()
- Returns:
- the value key
getValue
public final Object getValue()
- Returns:
- the value