error-handling-patterns

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

Updated Jun 19, 2025
One-click install
npx skills add https://github.com/jonico22/api_business_jke --skill error-handling-patterns-jonico22
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: error-handling-patterns
Source: https://github.com/jonico22/api_business_jke/tree/main/.agents/skills/error-handling-patterns
Command: npx skills add https://github.com/jonico22/api_business_jke --skill error-handling-patterns-jonico22

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

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

Core Features & Use Cases

  • Understand Error Philosophies: Learn about exceptions, Result types, error codes, and Option/Maybe types.
  • Implement Language-Specific Patterns: See examples for Python, TypeScript/JavaScript, Rust, and Go.
  • Apply Universal Patterns: Implement Circuit Breaker, Error Aggregation, and Graceful Degradation.
  • Follow Best Practices: Learn to fail fast, preserve context, and log appropriately.
  • Use Case: When developing a new microservice, use this Skill to ensure all API endpoints handle potential downstream service failures gracefully using the Circuit Breaker pattern.

Quick Start

Use the error-handling-patterns skill to learn about custom exception hierarchies in Python.

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 error handling patterns for microservices to handle downstream failures?

To implement error handling for microservices, apply universal patterns like the Circuit Breaker to ensure API endpoints handle downstream service failures gracefully and maintain application reliability.

What is the best way to handle exceptions and Result types across different programming languages?

Handling exceptions and Result types effectively requires understanding language-specific error philosophies, utilizing custom exception hierarchies in Python, and applying universal patterns like Error Aggregation across Python, TypeScript, Rust, and Go.

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

You should use Result types instead of exceptions when you need explicit error propagation without control flow disruptions, particularly in languages like Rust and Go where returning errors directly is the standard convention.

Can I use these error handling strategies with TypeScript and Go?

Yes, you can use these error handling strategies with TypeScript and Go, as the guidance provides specific code examples for TypeScript/JavaScript and Go alongside Python and Rust to implement robust API design.

Why does graceful degradation matter for application resilience?

Graceful degradation matters for resilience because it allows your application to maintain partial functionality and preserve context during failures, rather than crashing completely, by following fail-fast and appropriate logging best practices.