FormError

play.api.data.FormError
See theFormError companion object
case class FormError(key: String, messages: Seq[String], args: Seq[Any])

A form error.

Value parameters

args

Arguments used to format the message.

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.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Constructors

def this(key: String, message: String)
def this(key: String, message: String, args: Seq[Any])

Concrete methods

def format(implicit messages: Messages): String

Displays the formatted message, for use in a template.

Displays the formatted message, for use in a template.

Attributes

def withMessage(message: String): FormError

Copy this error with a new Message.

Copy this error with a new Message.

Value parameters

message

The new message.

Attributes

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Concrete fields

lazy val message: String