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-backendSKILL.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
ApiResponseerror envelope - Mapping exceptions to HTTP status codes
- Logging errors with structured Serilog context
Official Documentation
Procedure
- Set up global
IExceptionHandler— see error handling reference - Review exception handler sample
- Define custom exceptions in Core:
NotFoundException,ValidationException,ConflictException - Map exceptions to HTTP status codes in the handler
- Return
ApiResponseenvelope with error details — never expose stack traces - Log errors with structured context via Serilog
- Use Polly for retry/circuit-breaker on external calls
- 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
- SKILL.md in the repositoryCheckingskills/error-handling-backend/SKILL.md
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
[](https://verified-skill.com/skills/congiuluc/my-awesome-copilot/error-handling-backend)