Skip to content

refactor: switch to typed sentinel errors#23

Merged
danpasecinic merged 1 commit into
developmentfrom
feat/typed-errors-across-seam
May 7, 2026
Merged

refactor: switch to typed sentinel errors#23
danpasecinic merged 1 commit into
developmentfrom
feat/typed-errors-across-seam

Conversation

@danpasecinic

@danpasecinic danpasecinic commented May 7, 2026

Copy link
Copy Markdown
Owner

This pull request refactors error handling across the codebase to use sentinel error values for key container errors, improving reliability and type safety when checking error conditions. Instead of relying on string matching, errors are now wrapped with and checked against sentinel values, ensuring that error identity is preserved across package boundaries. The changes also include comprehensive tests to verify error detection across the public/internal seam.

@danpasecinic danpasecinic self-assigned this May 7, 2026
@danpasecinic danpasecinic added the enhancement New feature or request label May 7, 2026
@danpasecinic danpasecinic changed the title refactor: typed sentinel errors across public/internal seam refactor: switch to typed sentinel errors May 7, 2026
@danpasecinic danpasecinic merged commit f0c1aa8 into development May 7, 2026
5 checks passed
@danpasecinic danpasecinic deleted the feat/typed-errors-across-seam branch May 7, 2026 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant