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
plugin-retry.js
Adds automatic, configurable retry handling to Octokit's GitHub API requests.
SNAFU
An ergonomic Rust error handling library for mapping underlying errors into context-rich, domain-specific error types.
Cockatiel
Resilience and fault-handling for Node.js: retries, circuit breakers, timeouts, and more.
backon
Retry any Rust function, sync or async, with exponential, fibonacci, or constant backoff strategies chained directly onto the call.
backtrace
The Rust crate for capturing, symbolizing, and printing stack backtraces at runtime.
express-async-handler
A tiny wrapper that catches async errors in Express route handlers and forwards them to next().
path-to-error
A Serde Deserializer wrapper that reports the exact field path where a deserialization error occurred.
is-network-error
Checks whether a caught error is a genuine Fetch network failure, normalized across browsers and JS runtimes.
grpc-interceptor
Simplified base classes for writing Python gRPC server and client interceptors, with built-in exception-to-status-code mapping.
deno_error
A Rust trait and derive macro for representing Rust errors as typed JavaScript errors in Deno's runtime.
Symfony Debug
Symfony's Debug component provides tools to ease debugging PHP code, converting errors into exceptions and formatting fatal errors clearly.
symfony/error-handler
Converts PHP errors into catchable exceptions and renders rich debug pages, with production-safe fallbacks
miette
Fancy diagnostic reporting for Rust errors, with pretty-printed source spans, help text, and error codes.
purify-ts
Functional programming standard library for TypeScript with Maybe, Either, and Codec
ts-results
A TypeScript implementation of Rust's Result and Option types for explicit, compile-time-checked error handling.
annotate-snippets-rs
Renders compiler-quality annotated diagnostic reports with source-span highlighting, multi-line underlines, and suggested patches.
python-tblib
Serialize Python tracebacks and exceptions so they survive pickling across processes.
PEAR_Exception
The standalone base PEAR_Exception class from PEAR core, packaged for Composer.
errno
Cross-platform Rust access to the OS errno variable, with human-readable error descriptions on Unix, Windows, WASI, and Hermit.
custom_error
A macro for defining custom Rust error enums and structs without hand-writing Display and Error impls.
drf-exceptions-hog
Standardizes Django REST Framework error responses into a predictable, Stripe-style JSON format for easier frontend parsing.
fallible-iterator
Iterator traits for Rust that let iteration itself return a Result, so map, filter, and fold propagate errors instead of forcing unwraps in every loop.
http-api-problem
A Rust library for building RFC 7807 problem+json HTTP error responses for APIs.
outvariant
Type-safe invariant assertions with printf-style positional formatting for cleaner error messages.