ApiConnectionException
, ApiException
, AuthenticationException
, CardException
, IdempotencyException
, InvalidRequestException
, OAuthException
, SignatureVerificationException
public abstract class StripeException
extends java.lang.Exception
Constructor | Description |
---|---|
StripeException(java.lang.String message,
java.lang.String requestId,
java.lang.String code,
java.lang.Integer statusCode) |
|
StripeException(java.lang.String message,
java.lang.String requestId,
java.lang.String code,
java.lang.Integer statusCode,
java.lang.Throwable e) |
Constructs a new Stripe exception with the specified details.
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getCode() |
|
java.lang.String |
getRequestId() |
|
java.lang.Integer |
getStatusCode() |
|
java.lang.String |
toString() |
Returns a description of the exception, including the HTTP status code and request ID (if
applicable).
|
public StripeException(java.lang.String message, java.lang.String requestId, java.lang.String code, java.lang.Integer statusCode)
public StripeException(java.lang.String message, java.lang.String requestId, java.lang.String code, java.lang.Integer statusCode, java.lang.Throwable e)
public java.lang.String getCode()
public java.lang.String getRequestId()
public java.lang.Integer getStatusCode()
public java.lang.String toString()
toString
in class java.lang.Throwable