Package com.google.auth.oauth2
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 OAuthException
createFromHttpResponseException
(com.google.api.client.http.HttpResponseException e) (package private) String
(package private) String
(package private) String
Methods inherited from class com.google.auth.oauth2.GoogleAuthException
createWithTokenEndpointIOException, createWithTokenEndpointIOException, createWithTokenEndpointResponseException, createWithTokenEndpointResponseException, getRetryCount, isRetryable
Methods inherited from class java.lang.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:
getMessage
in classThrowable
-
getErrorCode
String getErrorCode() -
getErrorDescription
-
getErrorUri
-
createFromHttpResponseException
static OAuthException createFromHttpResponseException(com.google.api.client.http.HttpResponseException e) throws IOException - Throws:
IOException
-