Skip to content

Core.ErrorHandling

Define common error-shaping rules and diagnostics contracts.

  • Domain modules define focused error enums (IoError, FsError, ParseError, …).
  • Error payloads should be explicit and minimal.
  • Avoid string-only error channels for structured failures.
  • Prefer additive enum evolution.
  • Preserve source-local diagnostics where possible.
  • Keep error naming consistent and descriptive.