|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ValidationFailure
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.
BeanValidationFailure
Method Summary | |
---|---|
java.lang.String |
getDescription()
Returns a String representation of the error object. |
java.lang.Object |
getError()
Returns an user defined error object. |
java.lang.Object |
getSource()
Returns the object that has generated the failure. |
Method Detail |
---|
java.lang.Object getSource()
Person
must have a name and a ValidationFailure
is created when the
user attempts to save it, the Person
object would be the failure source.
java.lang.Object getError()
java.lang.String getDescription()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |