error-handling-patterns

Provide cross-language error-handling patterns for Python, TypeScript, Rust, and Go.

Updated Feb 21, 2026
One-click install
npx skills add https://github.com/abzhaw/juliaz_agents --skill error-handling-patterns-abzhaw
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: error-handling-patterns
Source: https://github.com/abzhaw/juliaz_agents/tree/main/.agent/skills/error-handling-patterns
Command: npx skills add https://github.com/abzhaw/juliaz_agents --skill error-handling-patterns-abzhaw

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Build robust error-handling strategies that span languages, enabling graceful failure, clear diagnostics, and predictable recovery.

Core Features & Use Cases

  • Cross-language guidance on choosing between exceptions, Result/Option types, and error codes.
  • Techniques like retries, circuit breakers, error aggregation, and graceful degradation for resilient systems.
  • Practical scenarios across service boundaries, IO, and distributed architectures with actionable patterns.

Quick Start

Outline and implement a robust error-handling strategy for your project by selecting appropriate error models, defining clear error classes, and applying retries and circuit breakers where needed.

Frequently Asked Questions about error-handling-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement resilient error handling across Python, TypeScript, Rust, and Go?

Implement resilient error handling by selecting appropriate error models for each language, defining explicit error classes, and applying retry, circuit-breaker, and graceful degradation strategies.

What's the best way to choose between exceptions and Result types for API design?

Choosing between exceptions and Result types depends on your language's error model and system architecture. Compare exceptions against Result or Option types to design APIs with clear error semantics and predictable recovery paths.

When should I use a circuit breaker pattern for distributed architecture failures?

Use a circuit breaker pattern in distributed architectures to prevent cascading failures across service boundaries. It monitors error rates and interrupts traffic to failing services, enabling graceful degradation and predictable recovery.

How do I apply retry strategies without worsening production issues?

Apply retry strategies with exponential backoff and jitter to avoid overwhelming services during transient IO failures. Combine retries with circuit breakers to stop retry loops when downstream services are completely unavailable.

Does this approach work for debugging production issues and service boundary errors?

Yes, this approach works for debugging production issues by providing structured error-handling patterns and clear diagnostics. It defines explicit error classes and aggregation techniques to trace failures across service boundaries accurately.

What is graceful degradation and how does it handle IO failures?

Graceful degradation is an error-handling strategy that maintains partial system functionality during IO failures. It ensures applications fail predictably by returning fallback responses instead of crashing when service boundaries or networks fail.