Skip to content

Add errorTree type for joined, wrapped error traversal#976

Closed
lukasschwab wants to merge 3 commits intogetsentry:masterfrom
lukasschwab:ls/joined-error-unwrap
Closed

Add errorTree type for joined, wrapped error traversal#976
lukasschwab wants to merge 3 commits intogetsentry:masterfrom
lukasschwab:ls/joined-error-unwrap

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.

@lukasschwab
Copy link
Contributor Author

Closing, per #977 (comment)

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