error-handling-patterns

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

Updated Mar 18, 2026
One-click install
npx skills add https://github.com/ekremmkasap/jarvis --skill error-handling-patterns-ekremmkasap
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: error-handling-patterns
Source: https://github.com/ekremmkasap/jarvis/tree/main/server/agent_prompts/wshobson/plugins/developer-essentials/skills/error-handling-patterns
Command: npx skills add https://github.com/ekremmkasap/jarvis --skill error-handling-patterns-ekremmkasap

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Build robust, cross-language error-handling patterns that reduce debugging time and increase system reliability.

Core Features & Use Cases

  • Provides Python exceptions, TypeScript error classes, Rust Result/Option patterns, and Go error conventions with concrete examples.
  • Includes universal patterns such as Circuit Breaker, Error Aggregation, and Graceful Degradation for resilient distributed systems.
  • Offers practical templates and guidance for API services, background workers, and microservices.

Quick Start

Provide a language-specific error-handling module with patterns and usage examples for immediate integration.

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 distributed systems across multiple programming languages?

Implement cross-language error handling by applying language-specific patterns like Python custom exceptions, TypeScript error classes, Rust Result types, and Go error conventions to build fault-tolerant distributed systems.

What is the best way to handle Rust Result and Option types for robust error management?

Handle Rust Result and Option types by adopting result-based error handling patterns. This approach replaces exception throwing with explicit type returns, ensuring robust error management by forcing the caller to handle potential failure cases directly.

How does a circuit breaker pattern work for API services and background workers?

A circuit breaker works for API services and background workers by tripping after a failure threshold is reached, blocking downstream calls to prevent cascading failures and enabling graceful degradation in distributed systems.

Can I use these error handling templates for microservices written in Python and Go?

Yes, you can use these templates for Python and Go microservices. The guidelines provide Python custom exceptions and Go error conventions alongside universal error aggregation patterns to increase system reliability.

When should I use exception-based patterns versus result-based patterns in TypeScript?

Use exception-based patterns in TypeScript for unexpected failures via custom error classes, while result-based patterns handle expected, recoverable failures, allowing API services to manage errors gracefully without breaking execution flow.

Why do I need error aggregation and graceful degradation patterns for fault-tolerant software?

You need error aggregation and graceful degradation patterns because they allow distributed systems to collect multiple errors and maintain partial functionality, preventing total system failure during partial outages and increasing overall system reliability.