juju/errors
Common juju errors and functions to annotate errors. Based on juju/errgo observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4500
- days_rel: n/a
- days_push: 1045
- n_releases_24m: 0
Adoption not part of the score
1383 stars · 80 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Go library for annotating errors with context, file/line locations, and typed error helpers, based on juju/errgo. It preserves the original error cause while allowing layered annotations and stack inspection.
Use cases
- annotate errors with file and line context in go
- wrap errors without losing the original cause
- create typed errors like not found or already exists
- print a full error stack for debugging
- replace errors.new and fmt.errorf with location-aware versions
When to choose
- you need rich error context and stack traces in a Go codebase
- you want typed sentinel errors with Cause-based checking
- you're working within the Juju ecosystem
When to avoid
- you're on Go 1.13+ and only need standard error wrapping with %w and errors.Is/As
- you want a minimal dependency-free error handling approach
- you need structured or machine-readable error payloads
Facets
library · maturity maintenance
error-handling developer-tools backend go cross-platform error-annotation error-wrapping stack-traces juju
1 source
- readme: https://github.com/juju/errors · fetched 2026-08-28 · 42049652d23c
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| juju/errors | main | 23 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem