|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
jef.dna.exceptions.ValidationExceptionAncestor
jef.dna.attributes.exceptions.AttributeValidationException
public class AttributeValidationException
This exception is thrown whenever a validation process over a Attribute fails.
Should the attribute be "ExceptionTable", the actualValue will represent the index
within the ExceptionTable of the ExceptionTableEntry whose
validation failed.
Should the attribute be "Classes", the actualValue will represent the index within
the InnerClassesTable of the InnerClassesTableEntry whose
validation failed.
Should the attribute be "LineNumberTable", the actualValue will represent the
index within the LineNumberTable of the LineNumberTableEntry whose
validation failed.
Should the attribute be "LocalVariableTable", the actualValue will represent the
index within the LocalVariableTable of the LocalVariableTableEntry
whose validation failed.
| Field Summary |
|---|
| Fields inherited from class jef.dna.exceptions.ValidationExceptionAncestor |
|---|
actualValue, attribute, expectedValue, innerIore, msg, srcEntity |
| Constructor Summary | |
|---|---|
AttributeValidationException(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. |
InnerClassesTableEntryValidationException |
getInnerClassesTblValidExc()
Gets the InnerClassesTableEntryValidationException stored within the current
AttributeValidationException. |
LineNumberTableEntryValidationException |
getLineNumberTblValidExc()
Gets the LineNumberTableEntryValidationException stored within the current
AttributeValidationException. |
LocalVariableTableEntryValidationException |
getLocalVariableTblEntryValidExc()
Gets the LocalVariableTableEntryValidationException stored within the current
AttributeValidationException. |
boolean |
hasExcpTableValidException()
Test whether the current AttributeValidationException stores an
ExceptionTableEntryValidationException |
boolean |
hasInnerClassesTableEntryValidException()
Test whether the current AttributeValidationException stores an
InnerClassesTableEntryValidationException |
boolean |
hasLineNumberTableEntryValidException()
Test whether the current AttributeValidationException stores an
LineNumeberTableEntryValidationException |
boolean |
hasLocalVariableTableEntryValidException()
Test whether the current AttributeValidationException stores an
LocalVariableTableEntryValidationException |
ExceptionTableEntryValidationException |
setExceptionTblValidExc()
Gets the ExceptionTableValidationException stored within the current
AttributeValidationException. |
void |
setExceptionTblValidExc(ExceptionTableEntryValidationException e)
Sets the ExceptionTableValidationException stored within the current
AttributeValidationException. |
void |
setInnerClassesTblValidExc(InnerClassesTableEntryValidationException e)
Sets the InnerClassesTableEntryValidationException stored within the current
AttributeValidationException. |
void |
setLineNumberTblValidExc(LineNumberTableEntryValidationException e)
Sets the LineNumberTableEntryValidationException stored within the current
AttributeValidationException. |
void |
setLocalVariableTblValidExc(LocalVariableTableEntryValidationException e)
Sets the LocalVariableTableEntryValidationException stored within the current
AttributeValidationException. |
| 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 |
|---|
public AttributeValidationException(java.lang.Object srcEntity,
java.lang.String attribute,
java.lang.Object actualValue,
java.lang.Object expectedValue,
java.lang.String msg)
ConstantInfoValidationException.
srcEntity - The source of the exceptionattribute - The attribute of the Attribute 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| Method Detail |
|---|
public java.lang.Object getExpectedValue()
null should not be possible to infer an
expected correct value.
public void setExceptionTblValidExc(ExceptionTableEntryValidationException e)
ExceptionTableValidationException stored within the current
AttributeValidationException. Such an exception exists iff the method
hasExcpTableValidException returns true
e - public ExceptionTableEntryValidationException setExceptionTblValidExc()
ExceptionTableValidationException stored within the current
AttributeValidationException. Such an exception exists iff the method
hasExcpTableValidException returns true
public boolean hasExcpTableValidException()
AttributeValidationException stores an
ExceptionTableEntryValidationException
public void setInnerClassesTblValidExc(InnerClassesTableEntryValidationException e)
InnerClassesTableEntryValidationException stored within the current
AttributeValidationException. Such an exception exists iff the method
hasInnerClassesTableEntryValidException returns true
e - public InnerClassesTableEntryValidationException getInnerClassesTblValidExc()
InnerClassesTableEntryValidationException stored within the current
AttributeValidationException. Such an exception exists iff the method
hasInnerClassesTableEntryValidException returns true
public boolean hasInnerClassesTableEntryValidException()
AttributeValidationException stores an
InnerClassesTableEntryValidationException
public void setLineNumberTblValidExc(LineNumberTableEntryValidationException e)
LineNumberTableEntryValidationException stored within the current
AttributeValidationException. Such an exception exists iff the method
hasLineNumberTableEntryValidException returns true
e - public LineNumberTableEntryValidationException getLineNumberTblValidExc()
LineNumberTableEntryValidationException stored within the current
AttributeValidationException. Such an exception exists iff the method
hasLineNumberTableEntryValidException returns true
public boolean hasLineNumberTableEntryValidException()
AttributeValidationException stores an
LineNumeberTableEntryValidationException
public void setLocalVariableTblValidExc(LocalVariableTableEntryValidationException e)
LocalVariableTableEntryValidationException stored within the current
AttributeValidationException. Such an exception exists iff the method
hasLocalVarTableEntryValidException returns true
e - public LocalVariableTableEntryValidationException getLocalVariableTblEntryValidExc()
LocalVariableTableEntryValidationException stored within the current
AttributeValidationException. Such an exception exists iff the method
hasLocalVarTableEntryValidException returns true
public boolean hasLocalVariableTableEntryValidException()
AttributeValidationException stores an
LocalVariableTableEntryValidationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||