Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

Reduce the reliance on strings in error types #586

Open
acfoltzer opened this issue Sep 11, 2020 · 0 comments
Open

Reduce the reliance on strings in error types #586

acfoltzer opened this issue Sep 11, 2020 · 0 comments

Comments

@acfoltzer
Copy link
Contributor

We have, for example, the variant lucet_runtime::Error::LimitsExceeded(String). If a user of the runtime wants to know which limit they've exceeded, they have to look for keywords in the string. In this example, we should be able to enumerate which limits were exceeded, and possibly bundle that along with the Limits struct itself.

There are a few other variants worth considering, like InvalidArgument, NoLinearMemory, and UnsupportedFeature.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant