-
Notifications
You must be signed in to change notification settings - Fork 156
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
Error handling #544
Comments
you might add a note that |
Thanks! Updated and I've added some other libraries that was recommended as |
+1 for Things like |
+1 for anyhow designed to be used in applications(not libraries) As for me it just dilemma between snafu and thiserror. Changes for seed with thiserror support is pretty simple. The biggest problem in the is create understandable error messages for websys errors |
+1 for |
Probably this link would be useful: https://github.com/rust-lang/project-error-handling |
On a top-level, I can think of two different kinds of errors:
I think to handle any of these errors we should think about Currently, I always just log any Another part where errors need to be handled is in the So the only points that need to handle errors are The answer to this is probably very individual. Maybe some applications want to show a notification in the corner, maybe others want to play a sound, some may want to send a message to the server. So I guess a lot of error handling will stay in the responsibility of the library user. |
What I noticed is that there are currently issues with Error handling when using messages. Messages usually have to implement Basically each component could implement a separate type for Errors next to the usual Message type, which does not implement |
I'd like to also +1 the implementation of In my personal opinion, it'd be nice to do this sooner rather than later (I'm happy to submit a PR with a
@mankinskin A useful pattern I've found to work around issues like this is to wrap in an |
I would be happy to merge it 🙂 |
This is a "tracking issue" for error handling to discuss and find a best way for error handling in Seed and Seed apps.
Interesting links:
Libs:
The text was updated successfully, but these errors were encountered: