|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
biz.c24.io.api.data.ValidationException
public class ValidationException
Signals that some exception has occurred during the validation of a data object.
This exception contains references to the context and particular field which were being validated. It also provides a validation result which can be used to distinguish between the possible resons for the exception.
Method Summary | |
---|---|
DataComponent |
getComponent()
|
ComplexDataObject |
getContext()
Returns the containing object of the field which failed validation. |
String |
getFieldName()
Returns the name of the field which failed validation. |
Object |
getObject()
|
String |
getReason()
Returns the reason for the failure. |
ValidationEvent |
getUnderlyingEvent()
|
ValidationResultEnum |
getValidationResult()
Returns the validation result. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public ValidationEvent getUnderlyingEvent()
public Object getObject()
public DataComponent getComponent()
public ComplexDataObject getContext()
public ValidationResultEnum getValidationResult()
public String getFieldName()
public String getReason()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |