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
,java.io.Serializable
- Direct Known Subclasses:
PluggableAuthException
class OAuthException extends GoogleAuthException
Encapsulates the standard OAuth error response. See https://tools.ietf.org/html/rfc6749#section-5.2.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
errorCode
private java.lang.String
errorDescription
private java.lang.String
errorUri
-
Constructor Summary
Constructors Constructor Description OAuthException(java.lang.String errorCode, java.lang.String errorDescription, java.lang.String errorUri)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static OAuthException
createFromHttpResponseException(com.google.api.client.http.HttpResponseException e)
(package private) java.lang.String
getErrorCode()
(package private) java.lang.String
getErrorDescription()
(package private) java.lang.String
getErrorUri()
java.lang.String
getMessage()
-
Methods inherited from class com.google.auth.oauth2.GoogleAuthException
createWithTokenEndpointIOException, createWithTokenEndpointIOException, createWithTokenEndpointResponseException, createWithTokenEndpointResponseException, getRetryCount, isRetryable
-
-
-
-
Method Detail
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in classjava.lang.Throwable
-
getErrorCode
java.lang.String getErrorCode()
-
getErrorDescription
@Nullable java.lang.String getErrorDescription()
-
getErrorUri
@Nullable java.lang.String getErrorUri()
-
createFromHttpResponseException
static OAuthException createFromHttpResponseException(com.google.api.client.http.HttpResponseException e) throws java.io.IOException
- Throws:
java.io.IOException
-
-