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

Expose error model to both Rust and Python users #491

Open
BatmanAoD opened this issue Aug 10, 2024 · 2 comments
Open

Expose error model to both Rust and Python users #491

BatmanAoD opened this issue Aug 10, 2024 · 2 comments

Comments

@BatmanAoD
Copy link
Contributor

There will be new error metadata in the Rigetti gRPC API; once available, this SDK should provide access to that metadata for all clients.

In Rust, distinct errors should be represented as enum variants (though they do not necessarily all need to be part of the same enum). We should additionally keep the existing variants for errors that are not part of the API, such as failure to establish a gRPC connection at all.

In Python, distinct errors should be represented as different Python Exception classes, corresponding 1:1 with the Rust enum variants.

@BatmanAoD
Copy link
Contributor Author

Note that any new errors defined for this task should also be usable by pyQuil users. If that entails new work in pyquil, a new ticket should be opened there.

@MarquessV
Copy link
Contributor

This relates to #471 in that it is one of the ideas for improving the gRPC experience overall.

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

No branches or pull requests

2 participants