Specific Error Types
Throw specific error types, not generic Error objects
CLAUDE.md
Throw specific error types, not generic Error. Create NotFoundError, ValidationError, AuthorizationError classes. Callers should be able to handle different errors differently.
Copy this block into your CLAUDE.md or agent config file to enforce it in your workflow.