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 ValidationFailure
public Object getSource()
getSource
in interface ValidationFailure
public Object getError()
ValidationFailure
getError
in interface ValidationFailure
Copyright © 2001–2015 Apache Cayenne. All rights reserved.