Skip to content

Add errorTree type for joined, wrapped error traversal #976

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

lukasschwab
Copy link
Contributor

@lukasschwab lukasschwab commented Mar 5, 2025

Changes

  • Adds an errorTree for traversing composed errors: errors.Wrap, (github.com/pkg/errors).Wrap, and now errors.Join.
  • Refactors SetException to use errorTree.

Motivation

Fix #977

See discussion and open questions there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement Issue type
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Decompose errors.Join errors in SetException
3 participants