error-handling-patterns

Implement error handling patterns across Python, TypeScript, JavaScript, Rust, and Go.

1|Updated Feb 15, 2026
One-click install
npx skills add https://github.com/tense-i/tslink --skill error-handling-patterns-tense-i
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: error-handling-patterns
Source: https://github.com/tense-i/tslink/tree/main/skills/error-handling-patterns
Command: npx skills add https://github.com/tense-i/tslink --skill error-handling-patterns-tense-i

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps developers implement robust error handling strategies across various programming languages, leading to more reliable and maintainable applications.

Core Features & Use Cases

  • Cross-Language Patterns: Demonstrates best practices for Python, TypeScript/JavaScript, Rust, and Go.
  • Error Handling Philosophies: Covers exceptions, Result types, error codes, and Option/Maybe types.
  • Universal Patterns: Includes implementations for Circuit Breaker, Error Aggregation, and Graceful Degradation.
  • Use Case: When developing a new microservice, use this Skill to ensure consistent and effective error handling across all API endpoints, preventing cascading failures and improving debugging.

Quick Start

Implement a Python custom exception hierarchy for your application errors.

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 robust error handling across different programming languages?

Robust error handling requires applying language-specific patterns like exceptions in Python and TypeScript, Result types in Rust, and explicit error propagation in Go to ensure application resilience and maintainability.

What is the best way to prevent cascading failures in a microservice architecture?

Preventing cascading failures involves implementing universal resilience patterns like the Circuit Breaker to halt downstream calls during outages, combined with error aggregation and graceful degradation strategies.

How do I create a custom exception hierarchy in Python for application errors?

Creating a custom exception hierarchy in Python involves defining a base class inheriting from Exception, then subclassing it with specific application error types to categorize failures and improve debugging.

Does this error handling guidance cover Result types and Option types in Rust?

Yes, the guidance covers Rust Result types and Option types, explaining how to manage recoverable errors without exceptions and demonstrating explicit error propagation for safer code.

When should I use graceful degradation instead of failing an API request?

Use graceful degradation instead of failing an API request when non-critical components fail, allowing the system to return partial functionality or fallback content while maintaining core service availability.

Can I use these error handling patterns for both JavaScript and TypeScript applications?

Yes, these error handling patterns apply to both JavaScript and TypeScript applications, providing shared best practices for managing exceptions, error propagation, and application resilience consistently.