---
kind: brain-preference
id: pref-prefer-typed-errors
created_at: "2026-04-10T13:00:00Z"
_confirmed_at: "2026-04-24T13:00:00Z"
unconfirmed_until: "2026-04-24T13:00:00Z"
tags: [brain, brain/preference, brain/topic/prefer-typed-errors, brain/scope/coding]
topic: prefer-typed-errors
_status: confirmed
principle: Throw typed error classes for distinct failure modes instead of bare Error with a string message.
_evidenced_by: []
_applied_count: 3
_violated_count: 0
_last_evidence_at: "2026-05-16T10:05:00Z"
_confidence: medium
_confidence_value: 0.4332
pinned: false
scope: coding
---

## Recent applications

- [[Brain/_BRAIN.md]] — 2026-05-16T10:05:00Z (starter-author)
- [[Brain/_BRAIN.md]] — 2026-05-15T10:10:00Z (starter-author)
- [[Brain/_BRAIN.md]] — 2026-05-14T10:10:00Z (starter-author)
