Packages

case class FormError(key: String, messages: Seq[String], args: Seq[Any] = Nil) extends Product with Serializable

A form error.

key

The error key (should be associated with a field using the same key).

messages

The form message (often a simple message key needing to be translated), if more than one message is passed the last one will be used.

args

Arguments used to format the message.

Source
Form.scala
Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FormError
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FormError(key: String, message: String, args: Seq[Any])
  2. new FormError(key: String, message: String)
  3. new FormError(key: String, messages: Seq[String], args: Seq[Any] = Nil)

    key

    The error key (should be associated with a field using the same key).

    messages

    The form message (often a simple message key needing to be translated), if more than one message is passed the last one will be used.

    args

    Arguments used to format the message.

Value Members

  1. val args: Seq[Any]
  2. def format(implicit messages: Messages): String

    Displays the formatted message, for use in a template.

  3. val key: String
  4. lazy val message: String
  5. val messages: Seq[String]
  6. def withMessage(message: String): FormError

    Copy this error with a new Message.

    Copy this error with a new Message.

    message

    The new message.