jef.dna.attributes.exceptions
Class LocalVariableTableEntryValidationException

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

public class LocalVariableTableEntryValidationException
extends AttributeValidationException

This exception is thrown upon failure when validating a LocalVariableTableEntry. This exception might store within its nested exception an UnknownOpCodeException.

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
LocalVariableTableEntryValidationException(java.lang.Object srcEntity, java.lang.String attribute, java.lang.Integer actualValue, Range expectedValue, java.lang.String msg)
          Creates a new instance of LocalVariableTableEntryValidationException without detail message.
 
Method Summary
 java.lang.Object getExpectedValue()
          Returns the expected value associated with the attribute over which the validation process failed.
 UnknownOpCodeException getInnerUnknownOpCodeException()
          Get the UnknownOpCodeException that caused the current exception to be raised.
 void setInnerUnknownOpCodeException(UnknownOpCodeException e)
          Set the UnknownOpCodeException that caused the current exception to be raised.
 
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

LocalVariableTableEntryValidationException

public LocalVariableTableEntryValidationException(java.lang.Object srcEntity,
                                                  java.lang.String attribute,
                                                  java.lang.Integer actualValue,
                                                  Range expectedValue,
                                                  java.lang.String msg)
Creates a new instance of LocalVariableTableEntryValidationException 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

setInnerUnknownOpCodeException

public void setInnerUnknownOpCodeException(UnknownOpCodeException e)
Set the UnknownOpCodeException that caused the current exception to be raised.

Parameters:
e - The source of the current exception

getInnerUnknownOpCodeException

public UnknownOpCodeException getInnerUnknownOpCodeException()
Get the UnknownOpCodeException that caused the current exception to be raised.

Returns:
UnknownOpCodeException