public class ValidationError extends Object implements Serializable
| Constructor and Description |
|---|
ValidationError(String key,
String message) |
ValidationError(String key,
String message,
String... args)
Gets a message based on a key using the supplied args, as defined in
MessageFormat, or, if the message is
not found, a supplied default value is returned. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String[] |
getArgs() |
String |
getKey() |
String |
getMessage() |
int |
hashCode() |
String |
toString() |
public ValidationError(String key, String message, String... args)
MessageFormat, or, if the message is
not found, a supplied default value is returned.key - the resource bundle key that is to be searched formessage - the default value which will be returned if no message is foundargs - an array args to be used in a MessageFormat messageCopyright © 2015–2017 eGovernments Foundation. All rights reserved.