exception-handler

Official

Patterns for robust domain exception handling.

Authordairectiv
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill standardizes and simplifies domain exception handling across the application, reducing boilerplate and improving consistency in error flows.

Core Features & Use Cases

  • Define a clear domain exception hierarchy (DomainException, EntityNotFoundException, InvalidArgumentException).
  • Provide factory methods like fromId() to create context-rich errors.
  • Map exceptions to HTTP status codes in controllers and APIs, ensuring predictable responses.

Quick Start

Ask your AI to generate an exception class named {Entity}NotFoundException with a static fromId() method and to wire it into a repository lookup.

Dependency Matrix

Required Modules

None required

Components

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: exception-handler
Download link: https://github.com/dairectiv/dairectiv/archive/main.zip#exception-handler

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 223,000+ vetted skills library on demand.