Package com.stripe.exception.oauth
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
-
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
The error resource returned by Stripe's OAuth API that caused the exception. -
setOauthError
The error resource returned by Stripe's OAuth API that caused the exception.
-