invariant

fun invariant(message: String, condition: Condition<C>)

This function defines an invariant condition that will hold true before and after all transitions.

Parameters

message

The message added to exception

condition

A boolean expression applied to the context