|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
jef.dna.exceptions.ValidationExceptionAncestor
public class ValidationExceptionAncestor
Ancestor class gathering all the methods common to every more specialized validation exception class.
Field Summary | |
---|---|
protected java.lang.Object |
actualValue
|
protected java.lang.String |
attribute
|
protected java.lang.Object |
expectedValue
|
protected IndexOutOfRangeException |
innerIore
|
protected java.lang.String |
msg
|
protected java.lang.Object |
srcEntity
|
Constructor Summary | |
---|---|
ValidationExceptionAncestor(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 ValidationExceptionAncestor without detail message. |
Method Summary | |
---|---|
java.lang.Object |
getActualValue()
Return the actual value associated with the attribute over which the validation process failed. |
java.lang.String |
getAttribute()
Return the name of the attribute whose value does not agree with the specification. |
ValidationExceptionHelper |
getHelper()
Returns a ValidationExceptionHelper instance for abstracting from all the
reflection related issues necessary for retreiving the actual value of those attributes over
which the validation process failed. |
IndexOutOfRangeException |
getInnerIndexOutOfRangeException()
This method should be useful to XxxOutOfRangeException subclasses. |
java.lang.String |
getMessage()
Returns a user friendly message describing the exception. |
java.lang.Object |
getSrcEntity()
Return the object that originated the exception |
void |
setInnerIndexOutOfRangeException(IndexOutOfRangeException e)
This method should be useful to XxxOutOfRangeException subclasses. |
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 |
Field Detail |
---|
protected java.lang.Object srcEntity
protected java.lang.String attribute
protected java.lang.Object actualValue
protected java.lang.Object expectedValue
protected java.lang.String msg
protected IndexOutOfRangeException innerIore
Constructor Detail |
---|
public ValidationExceptionAncestor(java.lang.Object srcEntity, java.lang.String attribute, java.lang.Object actualValue, java.lang.Object expectedValue, java.lang.String msg)
ValidationExceptionAncestor
without detail message.
Method Detail |
---|
public java.lang.Object getSrcEntity()
public java.lang.String getAttribute()
get
or set
for
obtaining or changing the actual value of the inspected attribute.
public java.lang.Object getActualValue()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public void setInnerIndexOutOfRangeException(IndexOutOfRangeException e)
XxxOutOfRangeException
subclasses. Sets the
IndexOutOfRangeException
which caused the current
XxxOutOfRangeException
to be raised.
e
- The source of the exceptionpublic IndexOutOfRangeException getInnerIndexOutOfRangeException()
XxxOutOfRangeException
subclasses. Gets the
IndexOutOfRangeException
which caused the current
XxxOutOfRangeException
to be raised.
public ValidationExceptionHelper getHelper()
ValidationExceptionHelper
instance for abstracting from all the
reflection related issues necessary for retreiving the actual value of those attributes over
which the validation process failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |