# joomcode/errorx

A comprehensive error handling library for Go

Repository: https://github.com/joomcode/errorx
Canonical: https://ross.abutalabs.com/products/errorx
Language: Go
License: MIT
License Family: permissive
Topics: go, error-handling, stack-traces, errors
Last push: 2024-11-08T12:49:30+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2938, "days_push": 663, "days_rel": 663, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1270, forks 32 (observed 2026-08-28T04:04:11.753530+00:00)

## What it is
errorx is a comprehensive error handling library for Go that provides rich error implementations with stack traces, composable error types, and robust type/trait checks. It aims to improve on Go's standard error patterns by adding debug context and expressive error classification.

## Use cases
- add stack traces to errors in go
- create typed errors in go
- wrap errors with context without changing semantics
- check error kinds instead of comparing error values
- improve error messages in go logs
- build composable error hierarchies in go

## When to choose
- you need rich, debuggable errors with stack traces in Go
- you want error classification via types and traits rather than sentinel comparisons
- you want a mature, MIT-licensed alternative to pkg/errors

## When to avoid
- you only need simple error wrapping available in the Go standard library
- your project must minimize external dependencies
- you need errors compatible with errors.Is/As across third-party libraries without adaptation

## Facets
- artifact type: library
- maturity: stable
- function: error-handling
- domain: developer-tools, backend
- platform: go
- tags: error-handling, stack-traces, error-types, traits, go-library

## Member repositories
- joomcode/errorx (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:11.753530+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T05:03:26.641165+00:00, confidence not recorded.
  - readme: https://github.com/joomcode/errorx (fetched 2026-08-28T04:04:11.753530+00:00, sha 2df25d001027)
- Data as of 2026-08-30T08:39:29.467469+00:00.
