def refused

bendvy-ecs-core@0.1.0.3 · execution_relation_failure_message.bend:23

import bendvy-ecs-core@0.1.0.3/execution_relation_failure_message.bend as ExecutionRelationFailureMessage
import Base
import bendvy-ecs-core@0.1.0.3/relation_types.bend as T
import bendvy-ecs-core@0.1.0.3/execution_relation_operation.bend as O

23def refused(~S:Data,~descriptor:T.Descriptor<S>,operation:O.Operation<S>,reason:O.Reason) -> Maybe<&2,Message<S,descriptor>>:
24  match reason:
25    case O.RelationError{error}:Some{failed(~S,~descriptor,operation,error)}
26    case O.HierarchyRequired{}:None{}

Uses (6)

Used by (1)