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
- Alphabetic
- By Inheritance
- FormError
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new FormError(key: String, message: String, args: Seq[Any])
- new FormError(key: String, message: String)
-
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
- val args: Seq[Any]
-
def
format(implicit messages: Messages): String
Displays the formatted message, for use in a template.
- val key: String
- lazy val message: String
- val messages: Seq[String]
-
def
withMessage(message: String): FormError
Copy this error with a new Message.
Copy this error with a new Message.
- message
The new message.