In my opinion its simpler to handle errors just like I handle everything else. Normally, errors are handled on a separate codepath. This module helps normalize the codepath for the return values (including errors) from asynchronous functions.
Simple type-safe errors for TypeScript
Type-safe errors as values for TypeScript. Like Go, but with full type inference.
Type-safe errors without the boilerplate
Lightweight TypeScript library for type-safe errors-as-values
Fault-tolerant CSS parser for PostCSS
Prevent defined property getters from throwing errors
Fetch with type safe errors
Give a regex, get a robust predicate function that tests it against a string.
`Array.prototype.concat`, but made safe by ignoring Symbol.isConcatSpreadable
Simple key-value storage with support for multiple backends
Push an array of items into an array, while being robust against prototype modification
Safer Node.js Buffer API
A simple cache for a few of the JS Error constructors.
Type-Safe Errors and Null Values for JS & TypeScript; Inspired by Rust.
An EventEmitter that isolates the emitter from errors in handlers
Create HTTP error objects
Read and write files atomically and reliably.
Type safe utilities for throwing errors (and responses) if things aren't quite right. Inspired by npm.im/invariant
A simple, type-safe wrapper for handling errors without try-catch blocks.
JSON.parse with context information on error
detect possibly catastrophic, exponential-time regular expressions
TypeScript definitions for http-errors
A flexible way to handle safe area, also works on Android and web.
Rambulance provides a simple and safe way to dynamically generate error pages.
ActiveModel/ActiveRecord validator that can wrap other validators to notify of errors so that new validations can be safely added to an existing model.
Safely run your code in a loving error reporting embrace
Measure event rates (requests/sec, errors/min) using a sliding window counter. Thread-safe, no background threads, supports named counter registries.
Stop scattering your business logic across controllers and models! Domainic::Command brings clarity to your domain operations with type-safe, self-documenting command objects that actually tell you what went wrong. From simple CRUD to complex workflows, make your business operations work for you, not against you!
Settings solution for Ruby or Rails applications that can read ERB-enabled YAML files. Safe, performant, with friendly error messages, and no dependencies.
ChaosToTheRescue uses LLMs to generate missing methods on-the-fly and suggest fixes for Rails exceptions. Features comprehensive security (secret redaction, opt-in behavior, no auto-execution) and is disabled by default for production safety.
A lean money library that stores amounts as integer subunits (cents) to avoid floating-point errors. Supports arithmetic with banker's rounding, fair allocation, multi-currency formatting, and type-safe currency conversion.
Represents an amount of money in a particular currency. Backed by BigDecimal, so is safe from float rounding errors.
Add idempotency support to your Grape APIs for safely retrying requests without accidentally performing the same operation twice. When creating or updating an object, use an idempotency key. Then, if a connection error occurs, you can safely repeat the request without risk of creating a second object or performing the update twice.
RStore makes batch processing of csv files a breeze. Automatically fetches data files, directories, URLs :: Customizable using additional options :: Validation of field values :: Descriptive error messages :: Safe and transparent data storage using database transactions
SafeMigrations enhances Rails migrations with safe_ prefixed methods that prevent errors by checking for existing schema elements before execution. It integrates with Rails' CommandRecorder for automatic reversal in change-based migrations, ensuring safe and reliable database schema management.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.