error-handling-patterns

Provide error-handling patterns for exceptions, Result types, and retries across Python, TypeScript, Rust, and Go.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Hanseooo/hanseo-opencode-workflows --skill error-handling-patterns-hanseooo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: error-handling-patterns
Source: https://github.com/Hanseooo/hanseo-opencode-workflows/tree/main/skills/error-handling-patterns
Command: npx skills add https://github.com/Hanseooo/hanseo-opencode-workflows --skill error-handling-patterns-hanseooo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Master error handling across languages including exceptions, Result types, error propagation, and graceful degradation to build resilient applications.

Core Features & Use Cases

  • Provides structured error types and propagation strategies across Python, TypeScript, Rust, and Go.
  • Demonstrates patterns such as Circuit Breaker, Error Aggregation, and Graceful Degradation to contain failures and preserve user trust.
  • Includes best practices and common pitfalls to guide teams in implementing consistent error handling.

Quick Start

Implement a simple error-handling pattern in your project by introducing a typed error hierarchy and a basic retry strategy.

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 consistent error handling across multiple programming languages?

Consistent error handling across languages is achieved by applying unified patterns for exceptions, Result types, and error propagation. This approach ensures consistent error semantics in multi-language codebases spanning Python, TypeScript, Rust, and Go.

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

A circuit breaker pattern is a resilience strategy used to contain failures and prevent cascading system crashes. You should use it to preserve user trust by stopping repeated failing API calls and enabling graceful degradation.

How do I implement a retry strategy with safe fallback flows?

Implementing a retry strategy with safe fallback flows involves defining structured error types and applying error aggregation. This combination safely manages transient failures while preserving application functionality through graceful degradation.

Does this approach support Result types for error propagation in Rust and TypeScript?

Yes, this approach explicitly supports Result types for error propagation in Rust and TypeScript. It provides structured error types and propagation strategies tailored for these languages alongside Python and Go.

What is the best way to design structured error types for API input validation?

The best way to design structured error types for API input validation is to establish a typed error hierarchy. This structure enables precise error aggregation and consistent semantics across your entire multi-language API surface.

What are common pitfalls when implementing graceful degradation in multi-language codebases?

Common pitfalls in implementing graceful degradation involve inconsistent error semantics and uncontained failures across different languages. Address these by following structured error type best practices to preserve user trust during partial system failures.