public class ValidationError extends Object
Modifier and Type | Field and Description |
---|---|
private String |
attribute |
private ValidationErrorCode |
code |
private String |
message |
Constructor and Description |
---|
ValidationError(String attribute,
ValidationErrorCode code,
String message) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object e) |
String |
getAttribute()
Returns the attribute that this error references, e.g.
|
ValidationErrorCode |
getCode()
Returns the
ValidationErrorCode for the specific validation error. |
String |
getMessage()
Returns the message associated with the validation error.
|
private String attribute
private ValidationErrorCode code
private String message
public ValidationError(String attribute, ValidationErrorCode code, String message)
public String getAttribute()
public ValidationErrorCode getCode()
ValidationErrorCode
for the specific validation error.ValidationErrorCode
.public String getMessage()
getCode()
for comparisons.Copyright © 2013-2020. All Rights Reserved.