error-handling-patterns

Implement error handling patterns across Python, TypeScript, Rust, and Go.

Updated Feb 19, 2026
One-click install
npx skills add https://github.com/B4san/Calix-Pass --skill error-handling-patterns-b4san
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: error-handling-patterns
Source: https://github.com/B4san/Calix-Pass/tree/main/.gemini/skills/error-handling-patterns
Command: npx skills add https://github.com/B4san/Calix-Pass --skill error-handling-patterns-b4san

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill helps developers master error handling strategies across various programming languages to build more reliable and maintainable software.

Core Features & Use Cases

  • Language-Specific Patterns: Provides examples for Python, TypeScript/JavaScript, Rust, and Go.
  • Universal Patterns: Covers Circuit Breaker, Error Aggregation, and Graceful Degradation.
  • Best Practices & Pitfalls: Offers guidance on effective error management and common mistakes to avoid.
  • Use Case: When implementing a new feature that interacts with external services, use this Skill to understand how to best implement retries, circuit breakers, and fallback mechanisms to ensure the feature remains functional even during service outages.

Quick Start

Show me how to implement a custom exception hierarchy in Python for application errors.

Frequently Asked Questions about error-handling-patterns

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

FAQPage Schema
What is the best way to implement error handling for external service calls?

Error handling for external services requires combining retries, circuit breakers, and fallback mechanisms to ensure features remain functional during outages. This Skill provides universal patterns like Graceful Degradation and Error Aggregation to build resilience against service failures.

How do I implement a custom exception hierarchy in Python?

Implementing a custom exception hierarchy in Python involves structuring application errors to propagate issues cleanly. This Skill provides language-specific examples and best practices for Python to help you design effective error management structures and avoid common pitfalls.

Does this Skill cover error handling patterns for Rust and Go?

Yes, this Skill covers error handling patterns for Rust and Go, alongside Python and TypeScript. It provides language-specific examples including Result types in Rust and error propagation strategies to help you master application reliability across different programming environments.

What is a circuit breaker pattern and when should I use it?

A circuit breaker pattern is a universal resilience mechanism that stops cascading failures by blocking requests to a failing service. You should use it when implementing features interacting with external services to ensure graceful degradation during outages.

How does the Result type compare to traditional exceptions for error propagation?

The Result type handles errors as explicit return values, unlike traditional exceptions which use control flow jumps. This Skill compares these approaches across languages like Rust and TypeScript, offering guidance on best practices and common mistakes to avoid when designing APIs.

What are common pitfalls when designing error handling for APIs?

Common pitfalls in API error handling include failing to propagate errors gracefully and lacking fallback mechanisms during service outages. This Skill offers guidance on effective error management, highlighting common mistakes to avoid and best practices for building maintainable, resilient software.