Package org.apache.cayenne.validation
Class SimpleValidationFailure
java.lang.Object
org.apache.cayenne.validation.SimpleValidationFailure
- All Implemented Interfaces:
Serializable
,ValidationFailure
- Direct Known Subclasses:
BeanValidationFailure
Represents a generic validation failure that contains
failed object and a message describing the failure.
- Since:
- 1.1
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
source
-
error
-
-
Constructor Details
-
SimpleValidationFailure
-
-
Method Details
-
getDescription
Returns the error converted to String.- Specified by:
getDescription
in interfaceValidationFailure
-
getSource
Returns object that failed the validation.- Specified by:
getSource
in interfaceValidationFailure
- Returns:
- the failure's source or null in case a source cannot be defined.
-
getError
Description copied from interface:ValidationFailure
Returns an user defined error object.- Specified by:
getError
in interfaceValidationFailure
-
toString
Returns a String representation of the failure.
-