com.ibm.oauth.core.api.error

Class OAuthException

  • java.lang.Object
    • java.lang.Throwable
      • java.lang.Exception
        • com.ibm.oauth.core.api.error.OAuthException
  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    OAuth20Exception, OAuthConfigurationException


    public abstract class OAuthException
    extends java.lang.Exception
    Represents an exception while processing OAuth request and response. This class is the base class for all OAuth component exceptions.
    See Also:
    Serialized Form
    • Constructor Summary

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

      Methods 
      Modifier and Type Method and Description
      abstract java.lang.String formatSelf(java.util.Locale locale, java.lang.String encoding) 
      abstract 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

      • OAuthException

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

      • getError

        public abstract java.lang.String getError()
        Gets error type for this OAuth exception
        Returns:
        error type
      • formatSelf

        public abstract java.lang.String formatSelf(java.util.Locale locale,
                                  java.lang.String encoding)