Modifier and Type | Field and Description |
---|---|
static com.stripe.stripeterminal.api.ApiError.Companion |
Companion
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
ApiError |
copy(com.stripe.stripeterminal.api.InnerError error)
An
ApiError is an object representing a Stripe API error object. |
boolean |
equals(java.lang.Object p) |
java.lang.String |
getCharge()
For card errors, the ID of the failed charge
|
java.lang.String |
getCode()
The code specific to this error type
|
java.lang.String |
getDeclineCode()
If this error results from a declined card (type =
CARD_ERROR ), this field will
provide more details |
java.lang.String |
getDocUrl()
A URL to learn more about the error reported
|
java.lang.String |
getMessage()
A human-readable message providing more details about the error
|
java.lang.String |
getParam()
If the error is parameter-specific, this returns the parameter related to the error
|
ApiErrorType |
getType()
The type of error returned
|
int |
hashCode() |
java.lang.String |
toString() |
public static com.stripe.stripeterminal.api.ApiError.Companion Companion
@Nullable public java.lang.String getCharge()
For card errors, the ID of the failed charge
@Nullable public java.lang.String getCode()
The code specific to this error type
@Nullable public java.lang.String getDeclineCode()
If this error results from a declined card (type = CARD_ERROR
), this field will
provide more details
@Nullable public java.lang.String getDocUrl()
A URL to learn more about the error reported
@NotNull public java.lang.String getMessage()
A human-readable message providing more details about the error
@Nullable public ApiErrorType getType()
The type of error returned
@Nullable public java.lang.String getParam()
If the error is parameter-specific, this returns the parameter related to the error
@NotNull public ApiError copy(@NotNull com.stripe.stripeterminal.api.InnerError error)
An ApiError
is an object representing a Stripe API error object.
For more information, see the official Stripe docs: Errors
Use of this SDK is subject to the Stripe Terminal Terms: https://stripe.com/terminal/legal
@NotNull public java.lang.String toString()
public int hashCode()
public boolean equals(@Nullable java.lang.Object p)