跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

Error Handling Patterns

技能 已验证 活跃

Master error handling patterns across languages including exceptions, Result types, error propagation, and graceful degradation to build resilient applications. Use when implementing error handling, designing APIs, or improving application reliability.

目的

Master error handling patterns across languages to build resilient applications by understanding exceptions, Result types, error propagation, and graceful degradation.

功能

  • Explains error handling philosophies (exceptions vs. Result types)
  • Details error categories (recoverable vs. unrecoverable)
  • Provides language-specific patterns (Python, TS/JS, Rust, Go)
  • Illustrates universal patterns (circuit breaker, error aggregation, graceful degradation)
  • Offers best practices and common pitfalls

使用场景

  • Implementing error handling in new features
  • Designing error-resilient APIs
  • Debugging production issues
  • Improving application reliability and creating better error messages

非目标

  • Implementing specific error handling for frameworks not explicitly mentioned
  • Providing runtime error handling for the skill itself
  • Covering all possible edge cases for every language and scenario

安装

请先添加 Marketplace

/plugin marketplace add wshobson/agents
/plugin install developer-essentials@claude-code-workflows

质量评分

已验证
95 /100
about 19 hours ago 分析

信任信号

最近提交3 days ago
星标35.3k
许可证MIT
状态
查看源代码

类似扩展

Csharp Async

100

Get best practices for C# async programming

技能
github

Circuit Breaker Pattern

100

Implement circuit breaker logic for agentic tool calls — tracking tool health, transitioning between closed/open/half-open states, reducing task scope when tools fail, routing to alternatives via capability maps, and enforcing failure budgets to prevent error accumulation. Separates orchestration (deciding what to attempt) from execution (calling tools), following the expeditor pattern. Use when building agents that depend on multiple tools with varying reliability, designing fault-tolerant agentic workflows, recovering gracefully from tool outages mid-task, or hardening existing agents against cascading tool failures.

技能
pjt222

Neon Postgres

100

Neon Serverless Postgres 的使用指南和最佳实践。涵盖入门、使用 Neon 进行本地开发、选择连接方法、Neon 功能、身份验证(@neondatabase/auth)、PostgREST 风格的数据 API(@neondatabase/neon-js)、Neon CLI 以及 Neon 的平台 API/SDK。可用于任何与 Neon 相关的问题。

技能
neondatabase

Sdk Dx

100

Design SDKs that developers love to use—APIs that feel native, error messages that guide, and experiences that reduce friction. This skill covers creating SDKs that drive adoption through exceptional developer experience rather than aggressive marketing. Trigger phrases: "SDK design", "developer experience", "API design", "SDK DX", "error messages", "type safety", "IDE integration", "SDK versioning", "migration guides", "client library design", "making SDKs feel native", "SDK best practices"

技能
jonathimer

Dart Matcher Best Practices

100

Best practices for using `expect` and `package:matcher`. Focuses on readable assertions, proper matcher selection, and avoiding common pitfalls.

技能
flutter

Golang Concurrency Patterns

100

Go concurrency patterns for production services: context cancellation, errgroup, worker pools, bounded parallelism, fan-in/fan-out, and common race/deadlock pitfalls

技能
bobmatnyc