error-handling-patterns

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

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/carrilloapps/VTradingWEB --skill error-handling-patterns-carrilloapps
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: error-handling-patterns
Source: https://github.com/carrilloapps/VTradingWEB/tree/main/.junie/skills/error-handling-patterns
Command: npx skills add https://github.com/carrilloapps/VTradingWEB --skill error-handling-patterns-carrilloapps

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides standardized error-handling patterns across languages to help developers design resilient applications, with clear guidance on exceptions, result types, retries, and graceful degradation.

Core Features & Use Cases

  • Cross-language patterns: Provides examples for Python, TypeScript, Rust, and Go error handling.
  • Guided best practices: Circuit breakers, error aggregation, and graceful degradation to improve reliability and debugging.
  • Use Case: When building a resilient API, apply these patterns to handle validation errors, external service failures, and retry strategies.

Quick Start

Use the error-handling-patterns skill to reference the provided code samples for various languages and integrate robust error handling into your services.

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 a circuit breaker for external API failures?

A circuit breaker prevents cascading API failures by halting requests to a failing service. This Skill provides code samples demonstrating circuit breaker patterns alongside retry strategies and graceful degradation techniques across multiple languages.

What is the best way to handle errors in Rust and Go compared to Python and TypeScript?

Error handling in Rust and Go typically uses result types, whereas Python and TypeScript use exceptions. This Skill consolidulates these cross-language patterns, offering native constructs for each to design resilient software.

How do I aggregate validation errors in a fault-tolerant API?

Error aggregation collects multiple validation failures into a single response rather than failing fast. This pattern is covered with language-native examples to improve debugging and reliability in data-validation flows.

When should I use graceful degradation instead of standard exception handling?

Graceful degradation maintains partial service functionality during external failures, whereas standard exception handling often halts execution. This Skill demonstrates when to apply degradation strategies to build fault-tolerant systems.

Does this error-handling skill work for building resilient APIs in any language?

The patterns apply broadly, but explicit code samples target Python, TypeScript, Rust, and Go. It covers exceptions, result types, retries, and circuit breakers using language-native constructs for these four environments.

Why do I need a retry pattern with exponential backoff for my services?

A retry pattern with backoff prevents overwhelming an external service during transient outages by progressively delaying subsequent requests. This Skill provides retry strategies to improve reliability in fault-tolerant systems.