Skip to main content

Module error

Module error 

Source
Expand description

The single stikk error type and its seven presentation classes.

Design stikk-04 ER-01/ER-02, threat model stikk-03 OP-03/CT-04. Two lessons from the 2026 prikk audit are applied here to stikk’s own error type: it implements std::error::Error::source so causes are inspectable, and it is #[non_exhaustive] so adding a class is not a breaking change. The load-bearing rule is StikkError::Refusal and friends preserve prikk’s message verbatim — no layer above rewrites it (NFR-I03); a localized gloss is added beside it, never in place of it.

Enums§

StikkError
Every error stikk surfaces, tagged with the class that decides how it is presented (design stikk-04 CT-04). The class is the whole point: a refusal opens the explanation overlay, a lock conflict is a banner, a not-ready is inline guidance, and so on — one mapping, both frontends.

Type Aliases§

Result
Convenience alias for a fallible stikk operation.