pattern @team/pattern-result-type-over-throw

Result Type Over Throw

Functions that have expected failure modes (network errors, validation failures, not-found) should return a `Result<T, E>` discriminated union rather than throwing exceptions.…

Skill
@team
Domain
coding-style
Version
1.0.0
Quality
0.0
Edges
0 out · 0 in
Tokens
74/340/663
$ aoe install @team/pattern-result-type-over-throw

Projection

Always in _index.xml · the agent never has to ask for this.

ResultTypeOverThrow [pattern] v1.0.0

Functions that have expected failure modes (network errors, validation failures, not-found) should return a Result<T, E> discriminated union rather than throwing exceptions. Exceptions are for unexpected, unrecoverable failures only.

Source

aoe-engine/examples/coding-style/primes/compiled/@team/pattern-result-type-over-throw/atom.yaml