class Rooibos::Error::Invariant

Invariant violation.

The library enforces rules about valid states and contracts. Breaking these rules raises this error.

Common causes:

To resolve, check the methodโ€™s documented contract. Ensure state preconditions are met and return types are correct.

Example

Rooibos.run(model: Model.new, view: nil, update: Update)  # => raises Error::Invariant