Class OAuthException

    • Constructor Detail

      • OAuthException

        public OAuthException​(String message)
        Builds an OAuthException with a given message.
        Parameters:
        message - exception message
      • OAuthException

        public OAuthException​(String message,
                              Exception cause)
        Builds an OAuthException with a given message and cause.
        Parameters:
        message - Exception's message
        cause - Exception cause
    • Method Detail

      • asPromise

        public <V> Promise<V,​OAuthException> asPromise()
        Return this OAuthException as a Promise.
        Type Parameters:
        V - the result value type of the promise
        Returns:
        an Exception promise of type ResourceException