ValidationHandler

orchescala.worker.ValidationHandler
See theValidationHandler companion object
trait ValidationHandler[In <: Product]

handler for Custom Validation (next to the automatic Validation of the In Object.

For example if one of two optional variables must exist.

Usage:

.withValidation(
  ValidationHandler(
    (in: In) => Right(in)
  )
)

or (with implicit conversion)

.withValidation(
    (in: In) => Right(in)
)

Default is no extra Validation.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def validate(in: In): Either[ValidatorError, In]