Class OAuth20Exception

    • Constructor Detail

      • OAuth20Exception

        public OAuth20Exception​(java.lang.String error,
                                java.lang.String message,
                                java.lang.Throwable cause)
        Creates a OAuth20Exception.
        Parameters:
        error - A message for the OAuth 2.0 error.
        message - A message for the general OAuth error.
        cause - A root exception.
    • Method Detail

      • getError

        public java.lang.String getError()
        Description copied from class: OAuthException
        Gets error type for this OAuth exception
        Specified by:
        getError in class OAuthException
        Returns:
        the error response associated with this OAuth 2.0 exception. These errors correspond to the mandated error field in OAuth 2.0 protocol.
      • formatSelf

        public java.lang.String formatSelf​(java.util.Locale locale,
                                           java.lang.String encoding)
        Specified by:
        formatSelf in class OAuthException