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

Raise exception with custom class #304

Open
bouk opened this issue Mar 24, 2021 · 1 comment
Open

Raise exception with custom class #304

bouk opened this issue Mar 24, 2021 · 1 comment
Labels
type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@bouk
Copy link
Contributor

bouk commented Mar 24, 2021

Hi there,

Currently, if no application default credentials were found, a RuntimeError with a constant error message is raised. This should be a custom class instead, so it can be caught in a rescue block.

This pattern is also done in web_user_authorizer.rb and user_authorizer

@yoshi-automation yoshi-automation added the triage me I really want to be triaged. label Mar 25, 2021
@danoscarmike danoscarmike added type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. and removed triage me I really want to be triaged. labels Mar 25, 2021
@BigTailWolf
Copy link
Contributor

We are working in progress for throwing all exceptions as custom class from the library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

4 participants