Class 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 Description
      OAuthException​(java.lang.String message, java.lang.Throwable cause)
      Creates a OAuthException.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method 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
      java.lang.String getMsgKey()  
      java.lang.Object[] getObjects()  
      • 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)
      • getMsgKey

        public java.lang.String getMsgKey()
      • getObjects

        public java.lang.Object[] getObjects()