## Lesson — Transitioning from generic errors to a typed hierarchy

**Tags:** error-handling, architecture, git

Transitioning from generic errors to a typed hierarchy like `TotemGitError` allows for domain-specific recovery logic and error codes. This structure helps the application distinguish between environment issues and tool failures, enabling more precise diagnostic messages and programmatically accessible error states.
