GoogleAuthException

  • GoogleAuthException is a public class that extendsException and signals Google authentication errors.

  • UnlikeIOExceptions,GoogleAuthExceptions imply that authentication should not simply be retried.

  • Subclasses likeUserRecoverableAuthException indicate transient user-correctable issues, while instances ofGoogleAuthException itself denote permanent, non-correctable authorization problems.

  • GoogleAuthException has 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 fromjava.lang.Throwable andjava.lang.Object.

public classGoogleAuthException extendsException
Known Direct Subclasses
UserRecoverableAuthExceptionUserRecoverableAuthExceptions signal Google authentication errors that can be recovered with user action, such as a user login. 
UserRecoverableNotifiedExceptionUserRecoverableNotifiedException signals that there was a Google authentication error which can be recovered with user action and has been handled by publishing a notification for the user to act on. 
Known Indirect Subclasses
GooglePlayServicesAvailabilityExceptionGooglePlayServicesAvailabilityExceptions are special instances of UserRecoverableAuthExceptions which are thrown when the expected Google Play services app is not available for some reason. 

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

Inherited Method Summary

From class java.lang.Throwable
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()
From class java.lang.Object
Object
clone()
boolean
equals(Object arg0)
void
finalize()
finalClass<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()

Public Constructors

publicGoogleAuthException()

publicGoogleAuthException(String err)

publicGoogleAuthException(String msg,Throwable throwable)

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.