home/categories/backend/imkdw-imkdw-dev-claude-skills-global-error-handling-skill-md
backenddevelopment

global-error-handling

Implement consistent error handling using custom exceptions, exception codes, and NestJS exception filters. Use this skill when creating custom exception classes (*.exception.ts), defining exception codes in the @imkdw-dev/exception package, implementing exception filters, or handling errors in use cases and controllers. This includes extending CustomException base class, using HttpStatus from NestJS, defining feature-specific exception codes (EXCEPTION_CODES), and providing user-friendly error messages. Apply when working with files in features/{feature}/exception/, common/exception/, packages/shared/exception/, or when throwing/catching exceptions anywhere in the codebase.

imkdw
maintainer
imkdw
Updated 1/19/2026
Stars
1
Forks
0
quick start

Installation and usage

Implement consistent error handling using custom exceptions, exception codes, and NestJS exception filters. Use this skill when creating custom exception classes (*.exception.ts), defining exception codes in the @imkdw-dev/exception package, implementing exception filters, or handling errors in use cases and controllers. This includes extending CustomException base class, using HttpStatus from NestJS, defining feature-specific exception codes (EXCEPTION_CODES), and providing user-friendly error messages. Apply when working with files in features/{feature}/exception/, common/exception/, packages/shared/exception/, or when throwing/catching exceptions anywhere in the codebase.

Installation
$ install --globalskills.sh
Usage

Once installed, you can use this skill by running the following command in your terminal:

skills use global-error-handling