handling-nestjs-exceptions
Installation
SKILL.md
Handling NestJS Exceptions
When to use
- Adding new error types
- Fixing inconsistent error responses
- Removing scattered try/catch in controllers
Core rules
- Single global exception filter catches all
AppErrorsubclasses Result<T,E>mapped to HTTP via helper, not scattered try/catch- All errors extend
AppErrorwithstatusCode - No
try/catchin controllers; let exceptions bubble to filter