jef.dna.constantInfo.exceptions
Class ConstantInfoValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
jef.dna.exceptions.ValidationExceptionAncestor
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
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 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 |
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 exceptionattribute
- The attribute of the CONSTANT_info over which the validation failedactualValue
- The actual value of the above attributeexpectedValue
- The expected value of the above attributemsg
- A descriptive message of what occourred
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