|
||||||||||
| 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.infoStructures.exceptions.FieldInfoValidationException
public class FieldInfoValidationException
This exception is thrown whenever a validation process over a ConstantInfo fails.
Should the getAttribute() method return Attribute, the
getActualValue() method will return the index of the Attribute
entry of the current FieldInfo whose validation failed. In such a case, the
current FieldInfoValidationException will contain either an
AttributeValidationException or an AttributeOutOfRangeException.
| Field Summary |
|---|
| Fields inherited from class jef.dna.exceptions.ValidationExceptionAncestor |
|---|
actualValue, attribute, expectedValue, innerIore, msg, srcEntity |
| Constructor Summary | |
|---|---|
FieldInfoValidationException(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 FieldInfoValidationException without detail message. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getExpectedValue()
Returns the expected value associated with the attribute over which the validation process failed. |
AttributeOutOfRangeException |
getInnerAttributeOutOfRangeException()
Gets the AttributeOutOfRangeException that caused the current
FieldInfoValidationException to be raised. |
AttributeValidationException |
getInnerAttributeValidationException()
Gets the AttributeValidationException that caused the current
FieldInfoValidationException to be raised. |
void |
setInnerAttributeOutOfRangeException(AttributeOutOfRangeException e)
Sets the AttributeOutOfRangeException that caused the current
FieldInfoValidationException to be raised. |
void |
setInnerAttributeValidationException(AttributeValidationException e)
Sets the AttributeValidationException that caused the current
FieldInfoValidationException to be raised. |
| 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 FieldInfoValidationException(java.lang.Object srcEntity,
java.lang.String attribute,
java.lang.Object actualValue,
java.lang.Object expectedValue,
java.lang.String msg)
FieldInfoValidationException without detail message.
srcEntity - The source of the exceptionattribute - The attribute of the FIELD_info (access-flag, name_index, descriptor_index or
attributes_count) over which the validation failed.actualValue - The actual value of the above attribute. If attribute has value
Attributes, actualValue is the index of the
attibute whose validation failed within the attributes list of the
FieldInfoStructure instanceexpectedValue - The expected value of the above attribute, or null if
attribute equals Attributesmsg - 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 setInnerAttributeValidationException(AttributeValidationException e)
AttributeValidationException that caused the current
FieldInfoValidationException to be raised.
e - The inner exceptio of the current exceptionpublic AttributeValidationException getInnerAttributeValidationException()
AttributeValidationException that caused the current
FieldInfoValidationException to be raised.
public void setInnerAttributeOutOfRangeException(AttributeOutOfRangeException e)
AttributeOutOfRangeException that caused the current
FieldInfoValidationException to be raised.
e - The inner exceptio of the current exceptionpublic AttributeOutOfRangeException getInnerAttributeOutOfRangeException()
AttributeOutOfRangeException that caused the current
FieldInfoValidationException to be raised.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||