public abstract class StripeException
extends java.lang.Exception
Constructor and 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 and Description |
---|---|
java.lang.String |
getCode() |
java.lang.String |
getMessage()
Returns a description of the exception, including the HTTP status code and request ID (if
applicable).
|
java.lang.String |
getRequestId() |
java.lang.Integer |
getStatusCode() |
StripeError |
getStripeError()
The error resource returned by Stripe's API that caused the exception.
|
void |
setStripeError(StripeError stripeError)
The error resource returned by Stripe's API that caused the exception.
|
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 getMessage()
getMessage
in class java.lang.Throwable
public StripeError getStripeError()
public java.lang.String getCode()
public java.lang.String getRequestId()
public java.lang.Integer getStatusCode()
public void setStripeError(StripeError stripeError)