3 مستودعات
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 هي مكتبة معالجة أخطاء Rust وماكرو إجرائي مصمم لتحديد أنواع أخطاء مخصصة. تعمل كمؤتمت لتنفيذ السمات (trait) الذي يولد الكود اللازم لسمات خطأ المكتبة القياسية في وقت التجميع. تركز المكتبة على القضاء على الكود المتكرر (boilerplate) باستخدام ماكرو derive لتنفيذ طرق العرض والمصدر تلقائياً. تسمح بإنشاء هياكل أخطاء مخصصة وتعدادات يمكنها تعيين أخطاء منخفضة المستوى إلى متغيرات عالية المستوى مع الحفاظ على السبب الأصلي ومعلومات التتبع (backtrace). تغطي قدراتها تنسيق الأخطاء المخصص من خلال استيفاء القالب، وإدارة انتشار الخطأ، ودمج تتبعات المكدس لتصحيح الأخطاء. كما توفر آليات لأتمتة تحويل الخطأ وتتبع أصول الخطأ عبر حقول مخصصة.
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.