Class OAuthException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
com.google.auth.oauth2.GoogleAuthException
com.google.auth.oauth2.OAuthException
- All Implemented Interfaces:
Retryable, Serializable
- Direct Known Subclasses:
PluggableAuthException
Encapsulates the standard OAuth error response. See
https://tools.ietf.org/html/rfc6749#section-5.2.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static OAuthExceptioncreateFromHttpResponseException(com.google.api.client.http.HttpResponseException e) (package private) String(package private) String(package private) StringMethods inherited from class GoogleAuthException
createWithTokenEndpointIOException, createWithTokenEndpointIOException, createWithTokenEndpointResponseException, createWithTokenEndpointResponseException, getRetryCount, isRetryableMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
errorCode
-
errorDescription
-
errorUri
-
-
Constructor Details
-
OAuthException
-
-
Method Details
-
getMessage
- Overrides:
getMessagein classThrowable
-
getErrorCode
String getErrorCode() -
getErrorDescription
-
getErrorUri
-
createFromHttpResponseException
static OAuthException createFromHttpResponseException(com.google.api.client.http.HttpResponseException e) throws IOException - Throws:
IOException
-