error-handling-backend

Community

Standardize backend error handling and logging.

Authorcongiuluc
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Implement consistent backend error handling with global exception handlers, custom domain exceptions, and a standardized error envelope to improve reliability and security across APIs.

Core Features & Use Cases

  • Global exception handling middleware to catch and standardize errors
  • Custom domain exceptions such as NotFoundException, ValidationException, and ConflictException
  • Mapping of domain errors to appropriate HTTP status codes and ApiResponse error payloads
  • Structured logging with Serilog to preserve context and diagnostics
  • Optional resilience patterns with Polly for transient failures

Quick Start

Set up the global exception handler and define domain exceptions to enable structured ApiResponse errors.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: error-handling-backend
Download link: https://github.com/congiuluc/my-awesome-copilot/archive/main.zip#error-handling-backend

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.