error-or/error-or
A simple, fluent discriminated union of an error or a result. observed · 2026-08-28
Health v2 · maintenance only
94/100
- Activity 98
- Release rhythm 84
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 5
- age_days: 1555
- days_rel: 110
- days_push: 12
- n_releases_24m: 2
Adoption not part of the score
2081 stars · 115 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
ErrorOr is a C# library providing a fluent discriminated union type of either an error or a result value, letting developers replace exception-based control flow with explicit error handling. It supports multiple errors, implicit conversions, and functional methods like Match, Switch, and Then for chaining.
Use cases
- replace exceptions with result types in C#
- return multiple errors from a service method
- chain operations with fluent error handling
- implement railway-oriented programming in .NET
- model success-or-failure API responses
When to choose
- you write C#/.NET code and want explicit, exception-free error handling
- you need to propagate multiple errors through a fluent pipeline
- you want Match/Switch/Then combinators for result handling
When to avoid
- your codebase relies on exception-based flow control
- you need a language-level union type rather than a library abstraction
- you work outside the .NET ecosystem
Facets
library · maturity active
error-handling serialization developer-tools backend web-development dotnet cross-platform result-type discriminated-union functional-programming csharp nuget railway-oriented-programming
1 source
- readme: https://github.com/error-or/error-or · fetched 2026-08-28 · fa424db1a8f5
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| error-or/error-or | main | 94 |
For agents
markdown · JSON · MCP: product_card(name="error-or/error-or")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem