public enum CheckoutErrorCode extends java.lang.Enum<CheckoutErrorCode> implements ErrorCode
CheckoutManager.startCheckoutActivity(Context, CheckoutParameters)
.Enum Constant and Description |
---|
CANCELED
The checkout flow was canceled.
|
SDK_NOT_AUTHORIZED
Reader SDK is not currently authorized.
|
USAGE_ERROR
CheckoutManager.startCheckoutActivity(Context, CheckoutParameters) was used in an
unexpected or unsupported way. |
Modifier and Type | Method and Description |
---|---|
boolean |
isUsageError()
Returns true if the error is a usage error, false otherwise.
|
static CheckoutErrorCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CheckoutErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CheckoutErrorCode CANCELED
public static final CheckoutErrorCode SDK_NOT_AUTHORIZED
public static final CheckoutErrorCode USAGE_ERROR
CheckoutManager.startCheckoutActivity(Context, CheckoutParameters)
was used in an
unexpected or unsupported way. See ResultError.getDebugCode()
and
ResultError.getDebugMessage()
for more information.public static CheckoutErrorCode[] values()
for (CheckoutErrorCode c : CheckoutErrorCode.values()) System.out.println(c);
public static CheckoutErrorCode 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()
ErrorCode
Returns true if the error is a usage error, false otherwise.
Useful for writing shared handling of debug codes and messages across Reader SDK operations.
isUsageError
in interface ErrorCode