GoogleAuthException Stay organized with collections Save and categorize content based on your preferences.
Page Summary
GoogleAuthExceptionis a public class that extendsExceptionand signals Google authentication errors.Unlike
IOExceptions,GoogleAuthExceptions imply that authentication should not simply be retried.Subclasses like
UserRecoverableAuthExceptionindicate transient user-correctable issues, while instances ofGoogleAuthExceptionitself denote permanent, non-correctable authorization problems.GoogleAuthExceptionhas multiple public constructors allowing instantiation with no arguments, a String error message, a message and a Throwable cause, or just a Throwable cause.It inherits various methods from
java.lang.Throwableandjava.lang.Object.
Known Direct Subclasses
| ||||||
Known Indirect Subclasses
| ||||
GoogleAuthExceptions signal Google authentication errors. In contrast toIOExceptions, GoogleAuthExceptions imply that authentication shouldn't simply be retried.
Objects whose type is exactlyGoogleAuthException denote an authorization problem that is expected to be permanent and not correctable by the user, such as invalid client. By contrast, subclasses such asUserRecoverableAuthException) are used for transient user-correctable issues. A transient issue may also be indicated by anIOException.
Public Constructor Summary
GoogleAuthException(Throwable throwable) |
Inherited Method Summary
| synchronized final void | addSuppressed(Throwable arg0) |
| synchronizedThrowable | fillInStackTrace() |
| synchronizedThrowable | getCause() |
| String | getLocalizedMessage() |
| String | getMessage() |
| StackTraceElement[] | getStackTrace() |
| synchronized finalThrowable[] | getSuppressed() |
| synchronizedThrowable | initCause(Throwable arg0) |
| void | printStackTrace() |
| void | printStackTrace(PrintWriter arg0) |
| void | printStackTrace(PrintStream arg0) |
| void | setStackTrace(StackTraceElement[] arg0) |
| String | toString() |
Public Constructors
publicGoogleAuthException()
publicGoogleAuthException(String err)
publicGoogleAuthException(Throwable throwable)
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.