public class ValidationError extends Object
Validator, 
ValidationResult| Constructor and Description | 
|---|
| ValidationError(String code)Constructs a new  ValidationErrorwith the supplied error code. | 
| ValidationError(String field,
               String code)Constructs a new  ValidationErrorwith the supplied field name and error code. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getCode()Returns the error code. | 
| String | getField()Returns the field name or  null. | 
| String | toString() | 
public ValidationError(String code)
ValidationError with the supplied error code.code - the error codepublic ValidationError(String field, String code)
ValidationError with the supplied field name and error code.field - the field namecode - the error code