public class ValidationError extends Object
Constructor and Description |
---|
ValidationError(String key,
List<String> messages,
List<Object> arguments)
Constructs a new
ValidationError . |
ValidationError(String key,
String message)
Constructs a new
ValidationError . |
ValidationError(String key,
String message,
List<Object> arguments)
Constructs a new
ValidationError . |
Modifier and Type | Method and Description |
---|---|
List<Object> |
arguments()
Returns the error arguments.
|
String |
format(Messages messagesObj)
Returns the formatted error message (message + arguments) in the given Messages.
|
String |
key()
Returns the error key.
|
String |
message()
Returns the error message.
|
List<String> |
messages()
Returns the error messages.
|
String |
toString() |
public ValidationError(String key, String message)
ValidationError
.key
- the error keymessage
- the error messagepublic ValidationError(String key, String message, List<Object> arguments)
ValidationError
.key
- the error keymessage
- the error messagearguments
- the error message argumentspublic String key()
public String message()
public List<Object> arguments()
public String format(Messages messagesObj)
messagesObj
- the play.i18n.Messages object containing the language.