congiuluc/my-awesome-copilot/error-handling-backend

Claude Code and agent skill by congiuluc/my-awesome-copilot

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Implement consistent backend error handling with global exception handlers, custom exceptions, and structured error responses. Use when: building IExceptionHandler, creating domain exceptions, mapping errors to HTTP status codes, or structured error logging with Serilog.

Install

npx vskill@latest install congiuluc/my-awesome-copilot/error-handling-backend

SKILL.md

The same SKILL.md was published earlier as congiuluc/my-awesome-copilot/error-handling-backend.

Backend Error Handling (.NET)

When to Use

  • Setting up global exception handling middleware
  • Creating custom exception types for domain errors
  • Implementing the standard ApiResponse error envelope
  • Mapping exceptions to HTTP status codes
  • Logging errors with structured Serilog context

Official Documentation

Procedure

  1. Set up global IExceptionHandler — see error handling reference
  2. Review exception handler sample
  3. Define custom exceptions in Core: NotFoundException, ValidationException, ConflictException
  4. Map exceptions to HTTP status codes in the handler
  5. Return ApiResponse envelope with error details — never expose stack traces
  6. Log errors with structured context via Serilog
  7. Use Polly for retry/circuit-breaker on external calls
  8. Never swallow exceptions silently

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/congiuluc/my-awesome-copilot/error-handling-backend/badge)](https://verified-skill.com/skills/congiuluc/my-awesome-copilot/error-handling-backend)

Something wrong with this skill or its page? Tell us.