error-handling-philosophy

Implement centralized error handling with user-friendly messages and developer logs.

Updated Jan 23, 2026
One-click install
npx skills add https://github.com/Gdm0714/claude-code-resource --skill error-handling-philosophy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: error-handling-philosophy
Source: https://github.com/Gdm0714/claude-code-resource/tree/main/skills/error-handling-philosophy
Command: npx skills add https://github.com/Gdm0714/claude-code-resource --skill error-handling-philosophy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Error handling is treated as feedback that improves reliability by delivering friendly messages to users while collecting detailed logs for developers.

Core Features & Use Cases

  • Centralized, consistent error handling across services
  • User-friendly messages for end users with clear, actionable guidance
  • Structured, machine-readable API error responses and robust logging/monitoring

Quick Start

Configure your services to surface friendly, actionable error messages to users while logging rich diagnostics for operators.

Frequently Asked Questions about error-handling-philosophy

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

FAQPage Schema
How do I implement centralized error handling for APIs and UI components?

Centralized error handling pairs user-friendly messages with detailed developer logs across services. It categorizes error types and standardizes API responses so web services and UI components fail gracefully.

What is the best way to structure API error responses and logs without leaking sensitive data?

Structured API error responses and safe logging prevent sensitive data leakage by separating user-facing guidance from machine-readable diagnostics. This approach ensures operators collect rich logs without exposing internal system details.

How do retry strategies work for runtime errors in production web services?

Retry strategies for runtime errors reduce production impact by automatically reattempting failed operations. Combined with centralized handlers and observability tools, they monitor failures and ensure services fail gracefully.

Can I integrate Sentry for error observability and monitoring in my application?

Yes, observability integrations like Sentry monitor runtime errors in production. They capture detailed developer logs from centralized handlers, enabling operators to track and resolve failures across services.

Does centralized error handling work for both web services and UI components?

Centralized error handling applies to web services, APIs, and UI components. It ensures consistent error categorization and standardized responses across the entire stack, allowing every layer to fail gracefully.

Why should I use categorized error types instead of generic error messages?

Categorized error types enable centralized handlers to deliver user-friendly messages while routing detailed diagnostics to developer logs. This categorization ensures actionable user guidance and precise observability monitoring.