Class 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 Detail

      • errorCode

        private final java.lang.String errorCode
      • errorDescription

        @Nullable
        private final java.lang.String errorDescription
      • errorUri

        @Nullable
        private final java.lang.String errorUri
    • Constructor Detail

      • OAuthException

        OAuthException​(java.lang.String errorCode,
                       @Nullable
                       java.lang.String errorDescription,
                       @Nullable
                       java.lang.String errorUri)
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.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