error-handling-patterns

Explain error handling patterns across Python, TypeScript/JavaScript, Rust, and Go.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/ACGSpgp/ACGS --skill error-handling-patterns-acgspgp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: error-handling-patterns
Source: https://github.com/ACGSpgp/ACGS/tree/main/.agent/workflows/developer-essentials/1.0.0/skills/error-handling-patterns
Command: npx skills add https://github.com/ACGSpgp/ACGS --skill error-handling-patterns-acgspgp

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

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

Core Features & Use Cases

  • Cross-Language Patterns: Demonstrates best practices in Python, TypeScript/JavaScript, Rust, and Go.
  • Error Types & Philosophies: Covers exceptions, Result types, error codes, and Option/Maybe types.
  • Advanced Patterns: Includes Circuit Breaker, Error Aggregation, and Graceful Degradation.
  • Use Case: When implementing a new API endpoint, use this Skill to ensure all potential failure modes (e.g., invalid input, external service errors, database issues) are handled gracefully and logged appropriately.

Quick Start

Show me Python examples for custom exception hierarchies and retry mechanisms.

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 handle exceptions across different programming languages?

Error handling patterns include circuit breakers to prevent cascading failures, error aggregation to collect multiple failures, and graceful degradation to maintain partial functionality during external service outages.

How do I implement a circuit breaker for fault tolerance?

Graceful degradation handles external service errors by maintaining partial application functionality and failing safely, ensuring the system remains responsive instead of crashing entirely during outages.

Should I use Result types or exceptions for error handling in Rust?

Use Result types in Rust for explicit, compiler-enforced error handling, whereas exceptions in Python or TypeScript offer a centralized approach for unexpected runtime failures.

How do I create a custom exception hierarchy in Python?

Create a custom exception hierarchy in Python by subclassing base exceptions to categorize specific failure modes, enabling precise error catching, targeted retry mechanisms, and appropriate logging.

Does this Skill cover Option and Maybe types for handling null values?

Yes, this Skill covers Option and Maybe types to explicitly represent optional values, forcing developers to handle absence safely and preventing null reference errors across supported languages.