play.data.validation
Class Error

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

public class Error
extends java.lang.Object

A validation error.


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

Method Detail

message

public java.lang.String message()
Returns:
The translated message

getKey

public java.lang.String getKey()
Returns:
The field name

message

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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