jef.dna.constantInfo.exceptions
Class ConstantInfoValidationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by jef.dna.exceptions.ValidationExceptionAncestor
              extended by jef.dna.constantInfo.exceptions.ConstantInfoValidationException
All Implemented Interfaces:
java.io.Serializable

public class ConstantInfoValidationException
extends ValidationExceptionAncestor

This exception is thrown whenever a validation process over a ConstantInfo fails.

Author:
Francesco Russo
See Also:
Serialized Form

Field Summary
 
Fields inherited from class jef.dna.exceptions.ValidationExceptionAncestor
actualValue, attribute, expectedValue, innerIore, msg, srcEntity
 
Constructor Summary
ConstantInfoValidationException(java.lang.Object srcEntity, java.lang.String attribute, java.lang.Object actualValue, java.lang.Object expectedValue, java.lang.String msg)
          Creates a new instance of ConstantInfoValidationException.
 
Method Summary
 java.lang.Object getExpectedValue()
          Returns the expected value associated with the attribute over which the validation process failed.
 
Methods inherited from class jef.dna.exceptions.ValidationExceptionAncestor
getActualValue, getAttribute, getHelper, getInnerIndexOutOfRangeException, getMessage, getSrcEntity, setInnerIndexOutOfRangeException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

ConstantInfoValidationException

public ConstantInfoValidationException(java.lang.Object srcEntity,
                                       java.lang.String attribute,
                                       java.lang.Object actualValue,
                                       java.lang.Object expectedValue,
                                       java.lang.String msg)
Creates a new instance of ConstantInfoValidationException.

Parameters:
srcEntity - The source of the exception
attribute - The attribute of the CONSTANT_info over which the validation failed
actualValue - The actual value of the above attribute
expectedValue - The expected value of the above attribute
msg - A descriptive message of what occourred
Method Detail

getExpectedValue

public java.lang.Object getExpectedValue()
Returns the expected value associated with the attribute over which the validation process failed. WARNING: this value might be null should not be possible to infer an expected correct value.

Returns:
Object The actual value