com.ibm.oauth.core.api.error.oauth20

Class OAuth20Exception

    • Constructor Summary

      Constructors 
      Constructor and Description
      OAuth20Exception(java.lang.String error, java.lang.String message, java.lang.Throwable cause)
      Creates a OAuth20Exception.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.lang.String formatSelf(java.util.Locale locale, java.lang.String encoding) 
      java.lang.String getError()
      Gets error type for this OAuth exception
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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