Error Handling Patterns

•
39k
•

Implements resilient error handling strategies, Result types, and graceful degradation across modern software architectures.

The Error Handling Patterns skill equips Claude Code with enterprise-grade error management practices across multiple programming languages and paradigms. It guides developers in choosing between exceptions and Result types, categorizing recoverable versus unrecoverable failures, structuring type-safe error hierarchies, and implementing fault-tolerant patterns like retries and circuit breakers. This skill is essential when designing reliable APIs, debugging complex production issues, preventing unhandled exceptions, and ensuring robust context preservation and logging without swallowing critical errors.

主要功能

0139,277 GitHub stars
02Guidance on choosing between exceptions, Result types, and Option/Maybe patterns
03Strategies for structured error propagation, wrapping, and context preservation
04Implementation patterns for retries, circuit breakers, and graceful degradation
05Standardized logging practices that prevent duplicate logs and swallowed exceptions
06Type-safe error hierarchies and input validation architectures

使用场景

01Designing resilient backend REST and GraphQL APIs with structured error responses
02Refactoring legacy exception handling to modern type-safe Result or Option types
03Implementing robust fault tolerance and retry mechanisms in distributed microservices