jef.dna.constantInfo.exceptions
Class ConstantInfoAttributeOutOfRangeException

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.ConstantInfoAttributeOutOfRangeException
All Implemented Interfaces:
java.io.Serializable

public class ConstantInfoAttributeOutOfRangeException
extends ValidationExceptionAncestor

This exception is thrown by a Constant Pool Table entry when one of its attributes points to an index out of the range admitted by the Constant Pool Table itself. This exception should store an IndexOutOfRangeException within its nested exceptions.

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
ConstantInfoAttributeOutOfRangeException(java.lang.Object srcEntity, java.lang.String attribute, java.lang.Object actualValue, Range admittedRange, java.lang.String msg)
          Creates a new instance of ConstantInfoAttributeOutOfRangeException
 
Method Summary
 Range 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

ConstantInfoAttributeOutOfRangeException

public ConstantInfoAttributeOutOfRangeException(java.lang.Object srcEntity,
                                                java.lang.String attribute,
                                                java.lang.Object actualValue,
                                                Range admittedRange,
                                                java.lang.String msg)
Creates a new instance of ConstantInfoAttributeOutOfRangeException

Parameters:
srcEntity - The entity that generated the current exception
attribute - The entity's attribute that caused the current exception
actualValue - The entity attribute's current value
admittedRange - The admitted range within the value should be located
msg - The exception message
Method Detail

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