error-handling-patterns

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

Updated Jul 15, 2025
One-click install
npx skills add https://github.com/nicolas-deyros/astro-portfolio-v2 --skill error-handling-patterns-nicolas-deyros
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: error-handling-patterns
Source: https://github.com/nicolas-deyros/astro-portfolio-v2/tree/main/.agents/skills/error-handling-patterns
Command: npx skills add https://github.com/nicolas-deyros/astro-portfolio-v2 --skill error-handling-patterns-nicolas-deyros

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Error handling is often inconsistent across languages and modules, making debugging harder and reliability weaker.

Core Features & Use Cases

  • Cross-language error handling patterns for exceptions, Result types, and error codes.
  • Language-specific templates with concrete examples for Python, TypeScript, Rust, and Go to standardize propagation, retries, and graceful degradation.
  • Universal patterns for circuit breakers, error aggregation, graceful degradation, and robust logging to improve production resilience.

Quick Start

Implement robust error handling by applying the provided patterns in your codebase.

Frequently Asked Questions about error-handling-patterns

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

FAQPage Schema
What are the best error handling patterns for cross-language development?

Robust error handling across languages applies structured patterns like exceptions, Result types, and error codes to standardize propagation and debugging. This approach uses universal patterns like circuit breakers and error aggregation to improve production resilience.

How do I implement a circuit breaker pattern for graceful degradation?

A circuit breaker pattern enables graceful degradation by preventing cascading failures during service disruptions. This pattern library provides templates for robust logging and error aggregation to maintain production resilience when external dependencies fail.

Does this pattern library support Result types in Rust and Go?

Yes, the pattern library supports Result types in Rust and Go, offering language-specific templates with concrete examples. These templates standardize error propagation and retries without relying solely on traditional exceptions.

How do I standardize retry logic across Python and TypeScript APIs?

Standardize retry logic across Python and TypeScript APIs by applying the provided language-specific templates with concrete examples. These templates standardize error propagation and retries to improve reliability and consistency across modules.

When should I use Result types instead of exceptions for error handling?

Use Result types instead of exceptions when you need explicit error propagation without control flow interruption, particularly in Rust and Go. This pattern library provides concrete examples to help standardize error codes and structured error returns.