Class OAuthException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.stripe.exception.StripeException
com.stripe.exception.oauth.OAuthException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
InvalidClientException, InvalidGrantException, InvalidRequestException, InvalidScopeException, UnsupportedGrantTypeException, UnsupportedResponseTypeException

public class OAuthException
extends StripeException
Base parent class for all OAuth exceptions.
See Also:
Serialized Form
  • Constructor Summary

    Constructors 
    Constructor Description
    OAuthException​(java.lang.String code, java.lang.String description, java.lang.String requestId, java.lang.Integer statusCode, java.lang.Throwable e)  
  • Method Summary

    Modifier and Type Method Description
    OAuthError getOauthError()
    The error resource returned by Stripe's OAuth API that caused the exception.
    void setOauthError​(OAuthError oauthError)
    The error resource returned by Stripe's OAuth API that caused the exception.

    Methods inherited from class com.stripe.exception.StripeException

    getCode, getMessage, getRequestId, getStatusCode, getStripeError, setStripeError

    Methods inherited from class java.lang.Throwable

    addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • OAuthException

      public OAuthException​(java.lang.String code, java.lang.String description, java.lang.String requestId, java.lang.Integer statusCode, java.lang.Throwable e)
  • Method Details

    • getOauthError

      public OAuthError getOauthError()
      The error resource returned by Stripe's OAuth API that caused the exception.
    • setOauthError

      public void setOauthError​(OAuthError oauthError)
      The error resource returned by Stripe's OAuth API that caused the exception.