Error Handling Packages
Ergonomic error-handling and result-type libraries that make failure states explicit instead of relying on exceptions (thiserror, anyhow).
Packages in Error Handling
Kind
Sort:Used by Most Apps
thiserror
A derive macro for ergonomic, zero-boilerplate custom error types in Rust.
anyhow
Flexible, idiomatic error handling for Rust applications with a single concrete error type.
react-error-boundary
Reusable React error boundary component that catches rendering errors and shows a fallback UI.
errors
Simple Go error handling primitives that add stack traces and context without losing the original cause.
tenacity
A general-purpose Python retrying library that adds configurable retry behavior to almost anything
Effect
A TypeScript library and ecosystem for building robust, type-safe, concurrent applications with a full functional effect system
backoff
Exponential backoff and retry for Go, with a generic Retry function, typed errors, and RetryAfter support for rate-limited APIs.
go-multierror
A Go library for combining multiple error values into a single, introspectable error.
zod-validation-error
Turns raw Zod validation issues into clear, human-readable error messages.
lo
A Lodash-style Go library built on Go 1.18+ generics for working with slices, maps, channels, and functions.
serialize-error
Serialize and deserialize JavaScript Error objects into plain, JSON-safe objects and back.
NestJS Terminus
The official health-check module for NestJS applications
gobreaker
A lightweight, thread-safe circuit breaker for Go that wraps any function call to stop cascading failures when a dependency starts failing.
retry-go
A lightweight Go library for retrying fallible functions with configurable backoff, jitter, and per-error attempt limits.
express-async-errors
A one-line patch that lets Express route handlers throw or reject instead of manually calling next(err).
eyre
A trait-object based error handling type for idiomatic error reporting in Rust applications
exceptiongroup
A backport of Python 3.11's BaseExceptionGroup and ExceptionGroup classes, letting older Python versions catch and format grouped exceptions.
boom
HTTP-friendly error objects for building consistent, well-formed API error responses in Node.js.
cockroachdb/errors
A drop-in replacement for pkg/errors and stdlib errors that adds network-portable error types, PII-free Sentry reporting, and rich wrapper composition.
retry
A lightweight, dependency-free Python decorator for retrying flaky function calls with configurable delay, backoff, and jitter.
go-retry
A dependency-free Go library for retrying flakey operations with pluggable backoff and jitter middleware.
backoff
Retry Rust operations with exponential backoff, for both sync and async code
fs-err
A drop-in replacement for std::fs that adds file paths and operation context to every I/O error.
zod-error
Formats Zod validation issues into a single, fully customizable error message string.