Agent skill

handling-global-errors

Unified strategy for catching and displaying API and network errors. Use throughout the application logic.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/handling-global-errors

SKILL.md

Global Error Handling System

When to use this skill

  • Wrapping server actions.
  • Client-side API calls.
  • Handling 404/500 pages.

Workflow

  • Use try-catch blocks.
  • Parse Appwrite errors (code 401, 404, etc.).
  • Trigger Toast notification with user-friendly message.
  • Log technical errors to a service (optional).

Instructions

  • User Friendly: Never show "Internal Server Error" to a user; show "Something went wrong on our end, please try again."
  • Specifics: Distinguish between "Wrong Password" and "Server Unreachable".

Didn't find tool you were looking for?

Be as detailed as possible for better results