jef.dna.attributes.exceptions
Class AttributeOutOfRangeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
jef.dna.exceptions.ValidationExceptionAncestor
jef.dna.attributes.exceptions.AttributeOutOfRangeException
- All Implemented Interfaces:
- java.io.Serializable
public class AttributeOutOfRangeException
- extends ValidationExceptionAncestor
This exception is used by validation process when an attribute index points out of the range
admitted by the Constant Pool Table. This exception should store an
IndexOutOfRangeException
within its nested exceptions.
- Author:
- Giovanni Giovanzana
- See Also:
- Serialized Form
Constructor Summary |
AttributeOutOfRangeException(java.lang.Object srcEntity,
java.lang.String attribute,
java.lang.Object actualValue,
Range admittedRange,
java.lang.String msg)
Creates a new instance of AttributeAttributeOutOfRangeException |
Method Summary |
Range |
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 |
AttributeOutOfRangeException
public AttributeOutOfRangeException(java.lang.Object srcEntity,
java.lang.String attribute,
java.lang.Object actualValue,
Range admittedRange,
java.lang.String msg)
- Creates a new instance of
AttributeAttributeOutOfRangeException
- Parameters:
srcEntity
- The entity that generated the current exceptionattribute
- The entity's attribute that caused the current exceptionactualValue
- The entity attribute's current valueadmittedRange
- The admitted range within the value should be locatedmsg
- The exception message
getExpectedValue
public Range 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:
- Range The actual value