play.api.data
Contains the validation API used by Form.
Form
For example, to define a custom constraint:
val negative = Constraint[Int] { case i if i < 0 => Valid case _ => Invalid("Must be a negative number.") }
A validation error.
the error message, if more then one message is passed it will use the last one
the error message arguments
Contains the validation API used by
Form
.For example, to define a custom constraint: