public class SimpleValidationFailure extends Object implements ValidationFailure
| Modifier and Type | Field and Description |
|---|---|
protected Object |
error |
protected Object |
source |
| Constructor and Description |
|---|
SimpleValidationFailure(Object source,
Object error) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public String getDescription()
getDescription in interface ValidationFailurepublic Object getSource()
getSource in interface ValidationFailurepublic Object getError()
ValidationFailuregetError in interface ValidationFailureCopyright © 2001–2018 Apache Cayenne. All rights reserved.