Rule Error Handling

Specific Error Types

Throw specific error types, not generic Error objects

errorstypesdebugging
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.

get crystl