Core.ErrorHandling
Purpose
Section titled “Purpose”Define common error-shaping rules and diagnostics contracts.
Contract
Section titled “Contract”- Domain modules define focused error enums (
IoError,FsError,ParseError, …). - Error payloads should be explicit and minimal.
- Avoid string-only error channels for structured failures.
Guidelines
Section titled “Guidelines”- Prefer additive enum evolution.
- Preserve source-local diagnostics where possible.
- Keep error naming consistent and descriptive.