awesome-repositories.com
المدونة
awesome-repositories.com

اكتشف أفضل مستودعات المصادر المفتوحة باستخدام بحث مدعوم بالذكاء الاصطناعي.

استكشفعمليات بحث منسقةبدائل مفتوحة المصدربرمجيات ذاتية الاستضافةالمدونةخريطة الموقع
المشروعحولكيفية ترتيب النتائجالصحافةخادم MCP
قانونيالخصوصيةالشروط
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
pkg avatar

pkg/errors

0
View on GitHub↗
8,258 نجوم·715 تفرعات·Go·BSD-2-Clause·1 مشاهدةgodoc.org/github.com/pkg/errors↗

Errors

pkg/errors is a Go library that provides primitives for creating, annotating, and inspecting errors with stack traces and contextual information. Its core identity centers on capturing the call stack at the point of error creation or wrapping, preserving that information for later debugging and root cause analysis.

The library distinguishes itself through a set of tightly integrated capabilities for error handling. It supports wrapping errors with descriptive messages while recording a new stack trace at the wrapping point, annotating existing errors with either a message or a stack trace independently, and creating new errors that automatically capture the call stack. For inspection, it provides mechanisms to walk the wrapped error chain to retrieve the root underlying cause or to search through the chain for an error matching a specific type or value.

Error formatting is handled through Go's standard formatting verbs, allowing developers to conditionally print stack trace details alongside error messages for diagnostic purposes. The library's design forms a linked chain of wrapped errors, enabling traversal from the outermost context down to the original error.

Features

  • Stack Trace Capture - Captures the call stack at the point of error creation or wrapping for later inspection.
  • Stack Trace Creators - Creates new error values that record the stack trace at the point of creation.
  • Chain Type Matchers - Searches through the error chain to find the first error matching a target type or value.
  • Error Wrapping - Wraps errors with descriptive messages while preserving the original error for chain traversal.
  • Chain Inspectors - Searches through wrapped error chains to find matching errors or retrieve the root cause.
  • Stack Trace Wrappers - Records stack traces at error creation and wrapping points for debugging.
  • Error Cause Mapping - Provides a function to unwrap the error chain and retrieve the root underlying cause.
  • Stack Trace Annotators - Adds a stack trace to an existing error without adding a new message.
  • Stack Trace Formatters - Prints errors with optional detailed stack trace information using standard formatting verbs.
  • Message Annotators - Adds a descriptive message to an existing error without recording a new stack trace.
  • Format Verb Stack Printers - Ships error formatting that prints stack traces conditionally via Go's fmt formatting verbs.
  • Format Verb Stack Printers - Prints detailed stack trace information using standard formatting verbs.
  • Error Handling - Simplifies error handling and wrapping.

سجل النجوم

مخطط تاريخ النجوم لـ pkg/errorsمخطط تاريخ النجوم لـ pkg/errors

بحث بالذكاء الاصطناعي

استكشف المزيد من المستودعات الرائعة

صف ما تحتاجه بلغة بسيطة — وسيقوم الذكاء الاصطناعي بترتيب آلاف المشاريع مفتوحة المصدر المنسقة حسب الصلة.

Start searching with AI

بدائل مفتوحة المصدر لـ Errors

مشاريع مفتوحة المصدر مشابهة، مرتبة حسب عدد الميزات المشتركة مع Errors.
  • dtolnay/thiserrorالصورة الرمزية لـ dtolnay

    dtolnay/thiserror

    5,459عرض على GitHub↗

    thiserror is a Rust error handling library and procedural macro designed to define custom error types. It functions as a trait implementation automator that generates the necessary code for standard library error traits at compile time. The library focuses on eliminating boilerplate by using derive macros to automatically implement display and source methods. It allows for the creation of custom error structs and enums that can map low-level errors to high-level variants while preserving the original cause and backtrace information. Its capabilities cover custom error formatting through temp

    Rust
    عرض على GitHub↗5,459
  • dtolnay/anyhowالصورة الرمزية لـ dtolnay

    dtolnay/anyhow

    6,569عرض على GitHub↗

    Anyhow is a dynamic error handling library for Rust applications that provides a flexible error container using type erasure. It serves as a tool for simplifying error signatures by wrapping diverse failure types into a single object, allowing for the propagation of any error that implements the standard error trait without requiring a custom enumeration for every function. The project functions as an error context provider by attaching high-level diagnostic information and recording execution stack traces at the point of failure. It enables the recovery of concrete error implementations from

    Rust
    عرض على GitHub↗6,569
  • a597873885/webfunny_monitorالصورة الرمزية لـ a597873885

    a597873885/webfunny_monitor

    5,298عرض على GitHub↗

    webfunny_monitor is an open-source frontend monitoring and analytics platform that tracks page load performance, JavaScript errors, and user behavior. It serves as a comprehensive tool for measuring page load speed, API response times, client-side errors, and custom user events, with real-time dashboards that stream aggregated metrics via WebSocket for sub-second updates. The project distinguishes itself through its architectural approach: events are collected asynchronously via lightweight HTTP beacons and batched before transmission, while a memory-bounded local storage buffer ensures relia

    JavaScriptburying-pointfront-end-monitorfrontend-monitoring
    عرض على GitHub↗5,298
  • bombela/backward-cppالصورة الرمزية لـ bombela

    bombela/backward-cpp

    4,285عرض على GitHub↗

    backward-cpp is a C++ stack trace library and debugging utility designed to capture, resolve, and print detailed execution traces and crash reports. It functions as a crash reporter and call stack printer that translates raw memory addresses into human-readable function names, filenames, and line numbers. The project provides automated crash reporting by registering system handlers for fatal errors, such as segmentation faults, to automatically generate execution traces upon program failure. It distinguishes itself by extracting source file fragments from disk to display specific lines of cod

    C++
    عرض على GitHub↗4,285
عرض جميع البدائل الـ 30 لـ Errors→

الأسئلة الشائعة

ما هي وظيفة pkg/errors؟

pkg/errors is a Go library that provides primitives for creating, annotating, and inspecting errors with stack traces and contextual information. Its core identity centers on capturing the call stack at the point of error creation or wrapping, preserving that information for later debugging and root cause analysis.

ما هي الميزات الرئيسية لـ pkg/errors؟

الميزات الرئيسية لـ pkg/errors هي: Stack Trace Capture, Stack Trace Creators, Chain Type Matchers, Error Wrapping, Chain Inspectors, Stack Trace Wrappers, Error Cause Mapping, Stack Trace Annotators.

ما هي البدائل مفتوحة المصدر لـ pkg/errors؟

تشمل البدائل مفتوحة المصدر لـ pkg/errors: dtolnay/thiserror — thiserror is a Rust error handling library and procedural macro designed to define custom error types. It functions as… dtolnay/anyhow — Anyhow is a dynamic error handling library for Rust applications that provides a flexible error container using type… bombela/backward-cpp — backward-cpp is a C++ stack trace library and debugging utility designed to capture, resolve, and print detailed… a597873885/webfunny_monitor — webfunny_monitor is an open-source frontend monitoring and analytics platform that tracks page load performance,… ehmicky/modern-errors — This library provides a comprehensive framework for managing errors in JavaScript and TypeScript applications. It… stacktracejs/stacktrace.js — stacktrace.js is a JavaScript library designed for generating and parsing detailed function call stacks from error…