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

Refactor Exceptions to include .status #26

Open
ca-scribner opened this issue Nov 23, 2021 · 0 comments
Open

Refactor Exceptions to include .status #26

ca-scribner opened this issue Nov 23, 2021 · 0 comments

Comments

@ca-scribner
Copy link
Contributor

OCIImageResourceError and CheckFailed have .status attribute that make automatically raising a status from an exception easy like shown here. We should adopt the same pattern here so we can remove helpers like this entirely and instead just handle multiple exceptions in the except (CheckFailed, NoVersionsListed, ...) block

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Labeled
Development

Successfully merging a pull request may close this issue.

1 participant