3 dépôts
Libraries that provide utilities for defining, propagating, and managing errors within a specific programming language.
Distinct from Generalized Error Handling for Custom Types: None of the candidates represent general error handling libraries for Rust.
Explore 3 awesome GitHub repositories matching programming languages & runtimes · Error Handling Libraries. Refine with filters or upvote what's useful.
thiserror est une bibliothèque de gestion d'erreurs Rust et une macro procédurale conçue pour définir des types d'erreur personnalisés. Elle fonctionne comme un automatiseur d'implémentation de trait qui génère le code nécessaire pour les traits d'erreur de la bibliothèque standard au moment de la compilation. La bibliothèque se concentre sur l'élimination du boilerplate en utilisant des macros derive pour implémenter automatiquement les méthodes display et source. Elle permet la création de structs et d'enums d'erreur personnalisés qui peuvent mapper des erreurs de bas niveau vers des variantes de haut niveau tout en préservant la cause originale et les informations de backtrace. Ses capacités couvrent le formatage d'erreur personnalisé via l'interpolation de modèle, la gestion de la propagation d'erreur et l'intégration de backtraces de pile pour le débogage. Elle fournit également des mécanismes pour automatiser la conversion d'erreur et tracer les origines d'erreur via des champs désignés.
Provides a comprehensive framework for defining custom error types in Rust using derive macros.
This library provides a comprehensive framework for managing errors in JavaScript and TypeScript applications. It enables the creation of structured, type-safe error hierarchies, allowing developers to define custom error classes that ensure consistent behavior and categorization across a codebase. The project distinguishes itself through a modular plugin architecture that allows for the extension of core error functionality, such as custom logging, serialization, and validation. It includes an exception normalization pipeline that converts non-standard or malformed errors into predictable in
Provides a comprehensive framework for defining, wrapping, and normalizing custom error classes in JavaScript and TypeScript.
errors is a Go error handling library and stack trace utility that wraps standard errors with execution call stacks and contextual information. It captures program execution paths at the exact moment an error is initialized, extracting granular file paths, line numbers, and function symbols from raw program counter addresses. The library maintains parent-child relationships between wrapped errors to allow deep inspection, unwrapping of root causes, and combination of multiple errors into unified structures. It implements standard error interfaces so enhanced error objects can be used intercha
Wraps errors with execution stack traces and context in Go applications.