Skip to content

cu29_traits: wire up CuError cause chaining#608

Merged
makeecat merged 2 commits into
masterfrom
yang/feat/CuError_refactor
Jan 6, 2026
Merged

cu29_traits: wire up CuError cause chaining#608
makeecat merged 2 commits into
masterfrom
yang/feat/CuError_refactor

Conversation

@makeecat

@makeecat makeecat commented Jan 5, 2026

Copy link
Copy Markdown
Collaborator

This PR refactors CuError to store causes as boxed dynamic error types (Box<dyn Error + Send + Sync + 'static>) instead of Option. This enables proper error chaining via the Error::source() trait method while maintaining Clone and Serialize/Deserialize support through custom implementations.

Related Issue: #317

…Error::source, adjust call sites for new cause handling, and add std-only serde tests with dev dependency update.
@makeecat makeecat changed the title cu29_traits: wire up CuError cause chaining; Expose boxed causes via … cu29_traits: wire up CuError cause chaining Jan 5, 2026
@makeecat makeecat added the enhancement New feature or request label Jan 5, 2026
@makeecat makeecat requested a review from gbin January 5, 2026 21:38
@gbin

gbin commented Jan 5, 2026

Copy link
Copy Markdown
Collaborator

it makes sense, especially that we have a heap anyway on embedded.

@makeecat makeecat merged commit 660183e into master Jan 6, 2026
9 checks passed
@makeecat makeecat deleted the yang/feat/CuError_refactor branch January 6, 2026 02:02
@makeecat

makeecat commented Jan 6, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@makeecat makeecat self-assigned this Jan 21, 2026
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.

2 participants