Packages

Error Handling Packages

Ergonomic error-handling and result-type libraries that make failure states explicit instead of relying on exceptions (thiserror, anyhow).

58 packages

Packages in Error Handling

57Health
Library npm

plugin-retry.js

Adds automatic, configurable retry handling to Octokit's GitHub API requests.

48
MIT
Used by 3
42Health
Library Cargo

SNAFU

An ergonomic Rust error handling library for mapping underlying errors into context-rich, domain-specific error types.

1,905
Other
Used by 2
61Health
Library npm

Cockatiel

Resilience and fault-handling for Node.js: retries, circuit breakers, timeouts, and more.

1,830
MIT
Used by 2
48Health
Library Cargo

backon

Retry any Rust function, sync or async, with exponential, fibonacci, or constant backoff strategies chained directly onto the call.

1,064
Apache 2.0
Used by 2
68Health
Library Cargo

backtrace

The Rust crate for capturing, symbolizing, and printing stack backtraces at runtime.

630
Other
Used by 2
35Health
Library npm

express-async-handler

A tiny wrapper that catches async errors in Express route handlers and forwards them to next().

581
MIT
Used by 2
39Health
Library Cargo

path-to-error

A Serde Deserializer wrapper that reports the exact field path where a deserialization error occurred.

427
Apache 2.0
Used by 2
44Health
Library npm

is-network-error

Checks whether a caught error is a genuine Fetch network failure, normalized across browsers and JS runtimes.

164
MIT
Used by 2
39Health
Library PyPI

grpc-interceptor

Simplified base classes for writing Python gRPC server and client interceptors, with built-in exception-to-status-code mapping.

150
MIT
Used by 2
31Health
Library Cargo

deno_error

A Rust trait and derive macro for representing Rust errors as typed JavaScript errors in Deno's runtime.

3
MIT
Used by 2
45Health
Library Composer

Symfony Debug

Symfony's Debug component provides tools to ease debugging PHP code, converting errors into exceptions and formatting fatal errors clearly.

7,165
MIT
Used by 1
85Health
Library Composer

symfony/error-handler

Converts PHP errors into catchable exceptions and renders rich debug pages, with production-safe fallbacks

2,675
MIT
Used by 1
53Health
Library Cargo

miette

Fancy diagnostic reporting for Rust errors, with pretty-printed source spans, help text, and error codes.

2,619
Apache 2.0
Used by 1
46Health
Library npm

purify-ts

Functional programming standard library for TypeScript with Maybe, Either, and Codec

1,607
Other
Used by 1
37Health
Library npm

ts-results

A TypeScript implementation of Rust's Result and Option types for explicit, compile-time-checked error handling.

1,411
MIT
Used by 1
83Health
Library Cargo

annotate-snippets-rs

Renders compiler-quality annotated diagnostic reports with source-span highlighting, multi-line underlines, and suggested patches.

526
Apache 2.0
Used by 1
43Health
Library PyPI

python-tblib

Serialize Python tracebacks and exceptions so they survive pickling across processes.

184
Other
Used by 1
34Health
Library Composer

PEAR_Exception

The standalone base PEAR_Exception class from PEAR core, packaged for Composer.

98
BSD 3
Used by 1
47Health
Library Cargo

errno

Cross-platform Rust access to the OS errno variable, with human-readable error descriptions on Unix, Windows, WASI, and Hermit.

80
Other
Used by 1
31Health
Library Cargo

custom_error

A macro for defining custom Rust error enums and structs without hand-writing Display and Error impls.

74
Other
Used by 1
43Health
Library PyPI

drf-exceptions-hog

Standardizes Django REST Framework error responses into a predictable, Stripe-style JSON format for easier frontend parsing.

68
MIT
Used by 1
45Health
Library Cargo

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.

63
Apache 2.0
Used by 1
33Health
Library Cargo

http-api-problem

A Rust library for building RFC 7807 problem+json HTTP error responses for APIs.

62
Other
Used by 1
30Health
Library npm

outvariant

Type-safe invariant assertions with printf-style positional formatting for cleaner error messages.

54
MIT
Used by 1

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers