object Invalid extends Serializable

This object provides helper methods to construct Invalid values.

Source
Validation.scala
Linear Supertypes
Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Invalid
  2. Serializable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

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

    Creates an Invalid value with a single error.

    Creates an Invalid value with a single error.

    error

    the validation error message

    args

    the validation error message arguments

    returns

    an Invalid value

  2. def apply(error: ValidationError): Invalid

    Creates an Invalid value with a single error.

    Creates an Invalid value with a single error.

    error

    the validation error

    returns

    an Invalid value