Global Error Handling

Implement global error handling with structured logs and retry logic.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/grimmolf/mga-soap-calculator --skill global-error-handling-grimmolf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Global Error Handling
Source: https://github.com/grimmolf/mga-soap-calculator/tree/main/.claude/skills/global-error-handling
Command: npx skills add https://github.com/grimmolf/mga-soap-calculator --skill global-error-handling-grimmolf

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates silent failures and provides clear debugging context, ensuring system resilience and maintainability by guiding the implementation of specific exception types, actionable messages, and centralized error capture.

Core Features & Use Cases

  • Loud Failures: Encourages specific exception types and actionable error messages.
  • Centralized Handling: Guides on implementing error boundaries and centralized error translation.
  • Graceful Degradation: Advises on retry logic, resource cleanup, and telemetry for degraded states.
  • Use Case: When adding a new external API call, use this skill to implement try/catch blocks that provide specific error types, log contextual information, and ensure graceful degradation if the API fails.

Quick Start

Using the Global Error Handling skill, implement error handling for the new payment gateway integration, ensuring specific exceptions and detailed logging.

Frequently Asked Questions about Global Error Handling

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

FAQPage Schema
How do I implement error handling that captures failures across my entire application?

Global error handling captures failures by implementing centralized exception handlers, correlation IDs, and structured logging across all modules and API boundaries. This ensures no silent failures and provides complete debugging context for post-mortem analysis and system resilience.

What's the best way to log errors with enough context for debugging?

Structure logs with context-preserving error data including stack traces, request IDs, and correlation IDs. This approach supports centralized error translation and gives you actionable debugging information tied to specific user sessions or transactions.

How do I handle API failures gracefully without crashing my application?

Implement bounded retry logic with jitter, idempotency checks, and graceful degradation strategies. Pair these with resource cleanup and telemetry capture so your system remains stable and recoverable when external services fail.

Do I need specific exception types or can I use generic errors?

Specific exception types are essential for error handling. They allow centralized error translation, enable precise catch logic at different stack layers, and provide clear actionable messages that distinguish recoverable failures from critical ones.

When should I implement error handling across my codebase?

Implement global error handling whenever adding new external API calls, crossing module boundaries, or managing resource-heavy operations. Early integration prevents silent failures and ensures consistent telemetry and retry behavior from the start.