public enum StoreCustomerCardErrorCode extends java.lang.Enum<StoreCustomerCardErrorCode> implements ErrorCode
Enum Constant and Description |
---|
CANCELED
The workflow to store a card for a customer was canceled by the user backing out of the
activity.
|
INVALID_CUSTOMER_ID
The supplied customer identifier does not match any customer known to Square.
|
NO_NETWORK
Network is not available.
|
SDK_NOT_AUTHORIZED
Reader SDK is not currently authorized.
|
USAGE_ERROR
A Reader SDK method was used in an unexpected or unsupported way.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isUsageError()
Tests whether the error code indicates an error in usage of Reader SDK.
|
static StoreCustomerCardErrorCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StoreCustomerCardErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StoreCustomerCardErrorCode CANCELED
public static final StoreCustomerCardErrorCode NO_NETWORK
public static final StoreCustomerCardErrorCode SDK_NOT_AUTHORIZED
public static final StoreCustomerCardErrorCode INVALID_CUSTOMER_ID
public static final StoreCustomerCardErrorCode USAGE_ERROR
ResultError.getDebugCode()
and ResultError.getDebugMessage()
for more
information.public static StoreCustomerCardErrorCode[] values()
for (StoreCustomerCardErrorCode c : StoreCustomerCardErrorCode.values()) System.out.println(c);
public static StoreCustomerCardErrorCode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isUsageError()
isUsageError
in interface ErrorCode
true
if the error indicates a usage error, or false
for run-time errors
that are consistent with correct usage.