Class Error

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

public class Error extends Object
A validation error
  • Constructor Details

  • Method Details

    • message

      public String message()
      Returns:
      The translated message
    • getKey

      public String getKey()
      Returns:
      The field name
    • getVariables

      public Collection<?> getVariables()
      Returns:
      The variables
    • 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