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

Reduce the reliance on strings in error types #586

Description

@acfoltzer

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions