public final class ValidationError extends Object implements Serializable
| Modifier and Type | Method and Description |
|---|---|
static ValidationError |
create(String errorCode,
String errorText,
ObjectPathElement... relativeObjectPathElements)
Constructs a new
ValidationError. |
String |
getErrorCode() |
String |
getErrorText() |
List<ObjectPathElement> |
getRelativeObjectPath() |
public static ValidationError create(String errorCode, String errorText, ObjectPathElement... relativeObjectPathElements)
ValidationError.errorCode - the error codeerrorText - the error textrelativeObjectPathElements - the relative path to the field this error refers toValidationErrorpublic String getErrorCode()
public String getErrorText()
public List<ObjectPathElement> getRelativeObjectPath()
Copyright © 2014. All rights reserved.