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