Invalid

works.iterative.workflow.Guard.Invalid
final case class Invalid[R, S](label: String, message: UserMessage) extends Guard[R, S]

Always-failing data guard leaf — for guard branches whose failure condition is a property of the command payload, not the entity, so no genuine Predicate[S] test applies (e.g. a payload-dependent requiresPayload branch). Mirrors Requirement's describe/check shape without a predicate: check always returns Left(GuardFailure.Leaf(label, message)).

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Guard[R, S]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def check(ctx: GuardContext[R, S]): Either[GuardFailure, Unit]

Inherited methods

infix def and(that: Guard[R, S]): Guard[R, S]

Attributes

Inherited from:
Guard
infix def or(that: Guard[R, S]): Guard[R, S]

Attributes

Inherited from:
Guard
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product