org.jminor.common.model.valuemap.exception
Class ValidationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by 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

Constructor Summary
ValidationException(Object key, Object value, String message)
          Instantiates a new ValidationException.
ValidationException(String message)
          Instantiates a new ValidationException.
 
Method Summary
 Object getKey()
           
 Object getValue()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 validated
value - the value
message - the exception message
Method Detail

getKey

public final Object getKey()
Returns:
the value key

getValue

public final Object getValue()
Returns:
the value