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
All Methods Instance Methods Concrete Methods 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, getUserMessage, setStripeError
-
-
-
-
Method Detail
-
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.
-
-