|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.validation.SimpleValidationFailure
public class SimpleValidationFailure
Represents a generic validation failure that contains failed object and a message describing the failure.
Field Summary | |
---|---|
protected Object |
error
|
protected Object |
source
|
Constructor Summary | |
---|---|
SimpleValidationFailure(Object source,
Object error)
|
Method Summary | |
---|---|
String |
getDescription()
Returns the error converted to String. |
Object |
getError()
Returns an user defined error object. |
Object |
getSource()
Returns object that failed the validation. |
String |
toString()
Returns a String representation of the failure. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Object source
protected Object error
Constructor Detail |
---|
public SimpleValidationFailure(Object source, Object error)
Method Detail |
---|
public String getDescription()
getDescription
in interface ValidationFailure
public Object getSource()
getSource
in interface ValidationFailure
public Object getError()
ValidationFailure
getError
in interface ValidationFailure
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |