Manuscript Documentation
v0.1.0

Error handling#

Choose the outcome that matches the situation: Result for an expected failure with an explanation, Optional for a missing value, and a fault for a broken programming assumption. These pages show how callers respond to each one.

ConceptWhat you will learn
Expected failures with ResultReturn success or domain errors as ordinary values.
Error propagation with tryForward compatible errors without hiding faults or cancellation.
Programming faultsCheck invariants and understand task failure after cleanup.