Class OAuthException

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

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

    • OAuthException

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

    • getError

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

      public abstract String formatSelf(Locale locale, String encoding)
    • getMsgKey

      public String getMsgKey()
    • getObjects

      public Object[] getObjects()