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

Cannot import com.google.auth.oauth2.GoogleAuthException #1123

Closed
roma2341 opened this issue Jan 6, 2023 · 3 comments
Closed

Cannot import com.google.auth.oauth2.GoogleAuthException #1123

roma2341 opened this issue Jan 6, 2023 · 3 comments

Comments

@roma2341
Copy link

roma2341 commented Jan 6, 2023

Environment details

  1. google-auth-library-oauth2-http
  2. OS type and version: Windows 10
  3. Java version: 15
  4. version(s):
    1.14.0

Steps to reproduce

  1. Add dependency google-auth-library-oauth2-http@1.14.0 to maven project
  2. try to import GoogleAuthException in catch block, intellij cannot found this class, how i should handle this exception if i can't import.

Code example

Stack trace

External references such as API reference guides

Any additional information below

I use IntelliJ IDEA 2022.3.1. I don't have issues with other libraries. Maybe i can' import GoogleAuthException because it's not public what is ok, but how i should catch this exception in my code ?

@julianSelser
Copy link

julianSelser commented Jan 6, 2023

heh seems like Im not the only one, Ill open a PR today

@roma2341
Copy link
Author

roma2341 commented Jan 6, 2023

heh seems like Im not the only one, Ill open a PR today

it's very strange that nobody reported this issue with exceptions long time ago because google returns bunch of different errors, most often completely illogical and incomprehensible

@TimurSadykov
Copy link
Member

Closing as duplicate, let's discuss the issue in #1122

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

3 participants