domain-exception-hierarchy
CommunityBuild robust domain error hierarchies.
Software Engineering#typescript#ddd#observability#error-handling#adapters#clean-architecture#domain-exceptions
Authorluansilvadb
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Creates a structured, semantic domain exception hierarchy to ensure precise error diagnosis, consistent propagation, and safe cross-layer boundaries.
Core Features & Use Cases
- Abstract base with contract: a sealed domain exception base carrying code, context, timestamp, and cause.
- Categorized leaves with typed context: specialized exceptions for Validation, State, Infrastructure, and Business errors with strong typing.
- Adapter translation & resilience: one-way translation from infra to domain, plus layered handlers (retry/fallback) and API-friendly payloads.
- Audit and observability: ensures exceptions are actionable and traceable across domain, application, and infrastructure.
Quick Start
Create an abstract base exception with a typed context, then implement category leaves and an adapter translator.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 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: domain-exception-hierarchy Download link: https://github.com/luansilvadb/agoravai/archive/main.zip#domain-exception-hierarchy Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.