setup-errors

Community

Set up robust error handling with global handler.

Authormadooei
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Configure a centralized error handling system for Hono-based projects, providing a base error class, standard HTTP error types, and a global handler to ensure consistent, secure error responses.

Core Features & Use Cases

  • BaseError class and HTTP error types to standardize error semantics across services.
  • Global error handler integration with a Hono app via app.onError.
  • Clear integration steps for bootstrapped projects before adding services and controllers.

Quick Start

Add the error infrastructure by creating src/errors.ts with the base error types and then wire app.onError(globalErrorHandler) in your Hono app.

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: setup-errors
Download link: https://github.com/madooei/backend-template/archive/main.zip#setup-errors

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.