Package org.apache.cayenne.validation
Interface ValidationFailure
- All Superinterfaces:
- Serializable
- All Known Implementing Classes:
- BeanValidationFailure,- SimpleValidationFailure
public interface ValidationFailure extends Serializable
Defines a single failure during the validation process. Implementing classes may
 store any extra information to help callers to identify the source and reasons 
 for the failure.
- Since:
- 1.1
- See Also:
- BeanValidationFailure
- 
Method Summary
- 
Method Details- 
getSourceObject getSource()Returns the object that has generated the failure. For example, if aPersonmust have a name and aValidationFailureis created when the user attempts to save it, thePersonobject would be the failure source.- Returns:
- the failure's source or null in case a source cannot be defined.
 
- 
getErrorObject getError()Returns an user defined error object.
- 
getDescriptionString getDescription()Returns a String representation of the error object. This is used in log messages and exceptions.
 
-