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.
zod-validation-error
Turns raw Zod validation issues into clear, human-readable error messages.
serialize-error
Serialize and deserialize JavaScript Error objects into plain, JSON-safe objects and back.
boom
HTTP-friendly error objects for building consistent, well-formed API error responses in Node.js.
zod-error
Formats Zod validation issues into a single, fully customizable error message string.
SNAFU
An ergonomic Rust error handling library for mapping underlying errors into context-rich, domain-specific error types.
express-async-handler
A tiny wrapper that catches async errors in Express route handlers and forwards them to next().
is-network-error
Checks whether a caught error is a genuine Fetch network failure, normalized across browsers and JS runtimes.
custom_error
A macro for defining custom Rust error enums and structs without hand-writing Display and Error impls.
http-api-problem
A Rust library for building RFC 7807 problem+json HTTP error responses for APIs.
n0-error
Ergonomic Rust error handling with automatic call-site location tracking.
proc-macro-error2
Nice, easy error reporting for Rust procedural macros, updated for syn 2
custom-error-instance
Create custom JavaScript Error subclasses that pass instanceof checks, with inheritance, default properties, and pluggable factories.
serde-error
A (de)serializable Rust Error type that captures the full causality chain for sending over the wire.
simple-eyre
A minimal eyre error handler that prints just the error chain — no backtraces, spans, or extra context.