6 个仓库
The process of transforming numeric system error codes into thrown language exceptions.
Distinct from Error-to-Exception Mappings: Candidates focus on cross-language async bridges or HTTP codes; this is a general C++/System API mapping.
Explore 6 awesome GitHub repositories matching software engineering & architecture · Error Code to Exception Mapping. Refine with filters or upvote what's useful.
The Symfony Debug component is a PHP debugging toolkit that converts PHP warnings and notices into exceptions for consistent runtime error handling. It provides a unified error management system by registering a global error handler that intercepts all PHP errors and forwards them to an exception-based pipeline. The component catches uncaught PHP exceptions and displays detailed stack traces enriched with file, line, and call chain context for developer visibility. It maps PHP error severity levels to corresponding exception types, enabling granular control over how different error conditions
Maps PHP error severity levels to corresponding exception types for granular control.
libusb is a cross-platform user-space library that provides a consistent C API for discovering, configuring, and communicating with USB devices from applications. It abstracts operating-system-specific USB driver details behind a single interface that works on Linux, macOS, Windows, and other platforms, enabling developers to write portable USB code without platform-specific knowledge. The library supports both synchronous and asynchronous I/O models for USB transfers. Synchronous operations block the calling thread until a transfer completes, offering a straightforward sequential programming
Returns negative integer error codes from all functions, enabling callers to diagnose failures without exceptions.
该项目是一个正式的 RFC 提案和技术规范,针对一系列新的 HTTP 状态码。它定义了一个开发人员错误标准,旨在区分 REST API 响应中的实现失败与标准客户端或服务器错误。 该规范提出了对 HTTP 协议的扩展,引入了状态码的保留数值范围。该系统将唯一的整数标识符映射到特定的实现错误,提供精确的诊断含义,并将开发人员错误与标准协议响应隔离开来,同时保持向后兼容性。 该标准通过为错误负载建立一致的响应模式,涵盖了 API 错误处理和开发人员调试工作流。这确保了在报告实现失败时不同 API 客户端和服务器之间的互操作性。
Links unique integer codes to specific implementation failures to provide precise diagnostic meaning during API communication.
Connect-go 是一个用于构建与 gRPC 和 HTTP 线缆兼容的类型安全远程过程调用 (RPC) 服务的库。它提供了用于结构化数据交换的 Protocol Buffers 的 Go 实现,支持创建多协议 RPC 服务器和生成的类型安全客户端。 该框架以其多语言协议支持而著称,允许单个服务器处理程序通过 HTTP 同时使用多种不同协议处理请求。这包括在同一服务的不同传输协议之间切换的能力,以及使用可插拔内容协商在二进制和 JSON 编码之间进行选择。 该项目涵盖了广泛的 API 集成功能,包括一元和双向消息流、用于请求拦截的网络中间件以及结构化错误管理。它还包括用于服务健康报告、负载压缩和内存缓冲区回收的操作工具,以减少垃圾回收开销。
Translates internal service failures into semantic error codes and metadata compatible with RPC standards.
Octokit.rb is a Ruby client library and REST API wrapper used to programmatically interact with GitHub. It provides a structured interface for automating workflows, managing repositories, and transforming raw HTTP responses into Ruby objects. The library differentiates itself through hypermedia-driven navigation, which uses URI templates and link relations to discover resources dynamically. It also implements automated result pagination to combine paginated responses into single arrays and uses fingerprint-based caching to reduce redundant network requests. The tool covers a broad range of c
Maps HTTP status codes from the GitHub API directly to a hierarchy of Ruby exception classes.
wil is a C++ wrapper library for the Windows API designed to simplify system development through RAII and exception handling. It provides a set of resource management tools, a framework for Windows error handling, and type-safe interfaces for registry access and networking. The library distinguishes itself by automating the conversion between system error codes and C++ exceptions, while providing utilities for contextual error message attachment and early return patterns. It also features specialized networking wrappers for socket initialization and hostname resolution, and a registry interfa
Transforms system error codes into thrown exceptions to streamline error propagation.