google-auth-library-ruby icon indicating copy to clipboard operation
google-auth-library-ruby copied to clipboard

Raise exception with custom class

Open bouk opened this issue 4 years ago • 1 comments

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

bouk avatar Mar 24 '21 13:03 bouk

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

BigTailWolf avatar Jul 31 '23 17:07 BigTailWolf