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

Teach cxx to catch (Map)ParseException #102

Merged
merged 1 commit into from
Oct 17, 2022
Merged

Conversation

dtolnay
Copy link
Contributor

@dtolnay dtolnay commented Oct 15, 2022

This implements the last suggestion in #95 (comment).

Avoids needing to wrap every function that might throw wasm::ParseException in its own individual try { ... } catch (const wasm::ParseException &e) { throw parse_exception_to_runtime_error(e); }.

I included an update to cxx 1.0.79 to pull in dtolnay/cxx#1114 for a slight convenience.

@brson
Copy link
Owner

brson commented Oct 17, 2022

Neat. Thanks again. I'll have to update my blog post to talk about this now!

@dtolnay dtolnay deleted the trycatch branch October 17, 2022 17:38
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