play.api.data

validation

package validation

Contains the validation API used by 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.")
}
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. validation
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. case class ValidationError(messages: Seq[String], args: Any*) extends Product with Serializable

    A validation error.

Value Members

  1. object ValidationError extends Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped