-
Notifications
You must be signed in to change notification settings - Fork 332
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
Use flex-error to define errors #988
Conversation
5fa2f75
to
c710fa3
Compare
The documentation for |
c710fa3
to
91a2d53
Compare
a7e0793
to
8bd683e
Compare
… into soares/flex-error
A new version of Hopefully the documentation is now clear enough that future contributors can understand how to define and update the error types here. |
Great work @soareschen! I have one question left: I see that by default |
Can we also add an entry to |
I have updated the the dependency to In any case, I leave both options for |
Description
This PR experiments on using flex-error to define application errors using the
define_error!
macro. Using this, we can easily switch between error tracers such aseyre
,anyhow
, or a naive string tracer by triggering Cargo feature flags.For the experiment, only the error definition
ics26_routing::error
is modified. To inspect how the error definitions are expanded, install cargo-expand and run the following:More documentation will be written on the
flex-error
GitHub.For contributor use:
docs/
) and code comments.Files changed
in the Github PR explorer.