adonisjs-exceptions

Community

AdonisJS exceptions with self-contained responses

Authoromakei
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Custom exceptions with static factories and self-contained HTTP responses standardize error handling in AdonisJS applications, ensuring consistent messages, statuses, and reusable patterns across services and controllers.

Core Features & Use Cases

  • Static factory methods for descriptive, contextual errors.
  • Self-contained HTTP response handling via handle() and structured reporting via report().
  • Clear guidance for organizing exceptions in app/exceptions/ with per-exception behavior.

Quick Start

Create a new OrderException by extending the base Exception, add static factories for each failure, and implement handle() to return a per-error HTTP response.

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: adonisjs-exceptions
Download link: https://github.com/omakei/adonisjs-architecture-skill/archive/main.zip#adonisjs-exceptions

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.