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

Add Exn.code_error_dyn #2246

Merged
merged 2 commits into from
Jun 5, 2019
Merged

Add Exn.code_error_dyn #2246

merged 2 commits into from
Jun 5, 2019

Conversation

rgrinberg
Copy link
Member

This is the recommended function to use for all code errors. It will become the
default once we get rid of Sexp.t

Signed-off-by: Rudi Grinberg rudi.grinberg@gmail.com

@rgrinberg rgrinberg requested review from a user and aalekseyev June 5, 2019 01:53
@rgrinberg rgrinberg requested a review from emillon as a code owner June 5, 2019 01:53
@ghost
Copy link

ghost commented Jun 5, 2019

Actually, would you mind stealing the Code_error module from #2190 and making Code_error.raise be the dyn version? This way, we'll just need to convert calls to Exn.code_error to Code_error.raise and then delete Exn.code_error to get to the final state.

@rgrinberg
Copy link
Member Author

I see. Okay, will do.

@rgrinberg
Copy link
Member Author

Alright, Code_error.raise now uses Dyn.t

rgrinberg added 2 commits June 5, 2019 16:46
This is the recommended function to use for all code errors. It will become the
default once we get rid of Sexp.t

Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
This new code_error exception uses Dyn.t rather than Sexp.t

Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
@rgrinberg rgrinberg merged commit 19fb7f9 into ocaml:master Jun 5, 2019
@rgrinberg rgrinberg deleted the dyn-code-error branch June 5, 2019 09:47
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.

1 participant