jef.dna.attributes.exceptions
Class LineNumberTableEntryValidationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by jef.dna.exceptions.ValidationExceptionAncestor
              extended by jef.dna.attributes.exceptions.AttributeValidationException
                  extended by jef.dna.attributes.exceptions.LineNumberTableEntryValidationException
All Implemented Interfaces:
java.io.Serializable

public class LineNumberTableEntryValidationException
extends AttributeValidationException

This exception is thrown whenever the validation process of a LineNumberTableEntry instance 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
LineNumberTableEntryValidationException(java.lang.Object srcEntity, java.lang.String attribute, java.lang.Integer actualValue, Range expectedValue, java.lang.String msg)
          Creates a new instance of LineNumberTableEntryValidationException without detail message.
 
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.attributes.exceptions.AttributeValidationException
getInnerClassesTblValidExc, getLineNumberTblValidExc, getLocalVariableTblEntryValidExc, hasExcpTableValidException, hasInnerClassesTableEntryValidException, hasLineNumberTableEntryValidException, hasLocalVariableTableEntryValidException, setExceptionTblValidExc, setExceptionTblValidExc, setInnerClassesTblValidExc, setLineNumberTblValidExc, setLocalVariableTblValidExc
 
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

LineNumberTableEntryValidationException

public LineNumberTableEntryValidationException(java.lang.Object srcEntity,
                                               java.lang.String attribute,
                                               java.lang.Integer actualValue,
                                               Range expectedValue,
                                               java.lang.String msg)
Creates a new instance of LineNumberTableEntryValidationException without detail message.

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
expectedValue - The admitted range within the value should be located
msg - The exception message
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.

Overrides:
getExpectedValue in class AttributeValidationException
Returns:
Object The actual value