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.
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.
安装后,您可以通过在终端运行以下命令来使用此技能:
skills use global-error-handling