play.data.validation
Class Error

java.lang.Object
  extended by play.data.validation.Error

public class Error
extends Object

A validation error.


Method Summary
 String getKey()
           
 String message()
           
 String message(String key)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

message

public String message()
Returns:
The translated message

getKey

public String getKey()
Returns:
The field name

message

public String message(String key)
Parameters:
key - Alternate field name (default to java variable name)
Returns:
The translated message

toString

public String toString()
Overrides:
toString in class Object


Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly