error-handling-patterns

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

Updated Mar 11, 2026
One-click install
npx skills add https://github.com/Industrial/rust-symphony --skill error-handling-patterns-industrial
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: error-handling-patterns
Source: https://github.com/Industrial/rust-symphony/tree/main/.cursor/skills/error-handling-patterns
Command: npx skills add https://github.com/Industrial/rust-symphony --skill error-handling-patterns-industrial

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers build more reliable software by mastering various error handling strategies across different programming languages, preventing unexpected crashes and improving debugging.

Core Features & Use Cases

  • Cross-Language Patterns: Learn exceptions, Result types, error codes, and Option/Maybe types in Python, TypeScript, Rust, and Go.
  • Advanced Techniques: Implement circuit breakers, error aggregation, and graceful degradation.
  • Use Case: When developing a new microservice, use this Skill to ensure all API endpoints handle potential network failures, invalid inputs, and downstream service errors gracefully, providing informative feedback to users and logging issues effectively.

Quick Start

Use the error-handling-patterns skill to implement a custom exception hierarchy in Python for your application.

Frequently Asked Questions about error-handling-patterns

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

FAQPage Schema
What is the difference between exceptions and Result types for error handling?

Exceptions interrupt control flow while Result types encode errors as return values. This skill explains both error handling patterns, comparing their use across Python, TypeScript, Rust, and Go to help you build fault-tolerant software.

How do I implement a circuit breaker pattern for network failures in a microservice?

To implement a circuit breaker for network failures, you wrap downstream service calls in a state machine that trips after repeated errors, preventing cascading crashes. This skill provides guidance on this and other graceful degradation techniques for microservices.

How do I create a custom exception hierarchy in Python?

Creating a custom exception hierarchy in Python involves defining base exception classes and inheriting them for specific error categories. This skill provides the guidance to structure these hierarchies effectively, improving debugging and application maintainability.

Does this error handling guidance cover both Python and Rust fault tolerance patterns?

Yes, this error handling guidance covers fault tolerance patterns across multiple languages including Python and Rust. It details language-specific mechanisms like Python exceptions and Rust Result types to help you prevent unexpected crashes.

What is the best way to handle invalid inputs and downstream service errors in API endpoints?

The best way to handle invalid inputs and downstream service errors in API endpoints is applying error aggregation and graceful degradation patterns. This skill details how to provide informative user feedback and log issues effectively without crashing.

When should I use error aggregation in my application architecture?

You should use error aggregation when your application needs to collect multiple validation failures or downstream issues simultaneously instead of failing on the first error. This skill covers this advanced pattern to improve debugging and software resilience.