Invalid

play.api.data.validation.Invalid
See theInvalid companion class
object Invalid

This object provides helper methods to construct Invalid values.

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Invalid.type

Members list

Type members

Inherited types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

Creates an Invalid value with a single error.

Creates an Invalid value with a single error.

Value parameters

error

the validation error

Attributes

Returns

an Invalid value

def apply(error: String, args: Any*): Invalid

Creates an Invalid value with a single error.

Creates an Invalid value with a single error.

Value parameters

args

the validation error message arguments

error

the validation error message

Attributes

Returns

an Invalid value