Package org.apache.cayenne.validation
Class SimpleValidationFailure
java.lang.Object
org.apache.cayenne.validation.SimpleValidationFailure
- All Implemented Interfaces:
- Serializable,- ValidationFailure
- Direct Known Subclasses:
- BeanValidationFailure
public class SimpleValidationFailure extends Object implements ValidationFailure
Represents a generic validation failure that contains
 failed object and a message describing the failure.
- Since:
- 1.1
- See Also:
- Serialized Form
- 
Field Summary
- 
Constructor SummaryConstructors Constructor Description SimpleValidationFailure(Object source, Object error)
- 
Method Summary
- 
Field Details- 
source
- 
error
 
- 
- 
Constructor Details- 
SimpleValidationFailure
 
- 
- 
Method Details- 
getDescriptionReturns the error converted to String.- Specified by:
- getDescriptionin interface- ValidationFailure
 
- 
getSourceReturns object that failed the validation.- Specified by:
- getSourcein interface- ValidationFailure
- Returns:
- the failure's source or null in case a source cannot be defined.
 
- 
getErrorDescription copied from interface:ValidationFailureReturns an user defined error object.- Specified by:
- getErrorin interface- ValidationFailure
 
- 
toStringReturns a String representation of the failure.
 
-