play.data.validation
Class ValidationError

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

public class ValidationError
extends java.lang.Object

A form validation error.


Constructor Summary
ValidationError(java.lang.String key, java.lang.String message)
          Constructs a new ValidationError.
ValidationError(java.lang.String key, java.lang.String message, java.util.List<java.lang.Object> arguments)
          Constructs a new ValidationError.
 
Method Summary
 java.util.List<java.lang.Object> arguments()
          Returns the error arguments.
 java.lang.String key()
          Returns the error key.
 java.lang.String message()
          Returns the error message.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValidationError

public ValidationError(java.lang.String key,
                       java.lang.String message)
Constructs a new ValidationError.

Parameters:
key - the error key
message - the error message

ValidationError

public ValidationError(java.lang.String key,
                       java.lang.String message,
                       java.util.List<java.lang.Object> arguments)
Constructs a new ValidationError.

Parameters:
key - the error key
message - the error message
arguments - the error message arguments
Method Detail

key

public java.lang.String key()
Returns the error key.


message

public java.lang.String message()
Returns the error message.


arguments

public java.util.List<java.lang.Object> arguments()
Returns the error arguments.


toString

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