Skip to content
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

Introduce replacement error type. #2492

Closed

Conversation

thomcc
Copy link
Contributor

@thomcc thomcc commented Feb 10, 2022

This introduces the new error handling type, which has been mercilessly ripped out from the other branch I was working on, but is a lot less of a "rewrite the world" kind of change, and something we can migrate to. For example, this doesn't migrate us to it at all. That's something we'll do as we clean up some of the code.

There are a couple pieces that aren't quite finished, such as backtrace/spantrace handling (for one, do we want/need both of these?), and I suspect the things I'm doing here are... suboptimal on embedded. I'll write down a concrete list after the demo meeting, but I don't think anything is a deal-breaker quite yet (unless no_std is broken, which should be an easy fix).

Anyway, there's quite a bit of documentation in the comments, so see that for more details!

@thomcc thomcc force-pushed the thomcc/another-day-another-error-handling-branch branch from 3521924 to 55e1dbe Compare February 10, 2022 16:56
#[derive(Serialize, Deserialize)]
pub(super) struct ErrorData {
pub(super) code: ErrorCode,
// TODO: these should not be disabled for no_std, but: not as simple as
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should say "should not be enabled"

@SanjoDeundiak
Copy link
Member

Replaced by #2566

@mrinalwadhwa mrinalwadhwa deleted the thomcc/another-day-another-error-handling-branch branch March 9, 2023 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants