public static enum D1Exception.ErrorCode extends Enum<D1Exception.ErrorCode>
NOTE:
Each D1Exception
returned by D1 SDK contains one of these error codes.
Integrator should check its getMessage()
or getRecoverySuggestion()
for further information.
Enum Constant and Description |
---|
ERROR_CANCELLED
User cancelled the operation
|
ERROR_CARD
Errors encountered whilst executing card operations.
|
ERROR_CARD_NO_PENDING_IDV
No digital card is found with
CardDigitizationState.PENDING_IDV . |
ERROR_CARD_NOT_FOUND
The provided cardID is not found.
|
ERROR_CORE
Generic error of CORE module.
|
ERROR_D1PAY
Errors encountered whilst executing D1 Pay operations.
|
ERROR_D1PAY_UNRECOVERABLE
Unrecoverable error happened while executing D1 Pay operation.
|
ERROR_DEVICE_ENVIRONMENT_UNSAFE
The device environment is potentially unsafe.
|
ERROR_NO_CARD_ACTIVATION_METHOD |
ERROR_NOT_AUTHORIZED
The user is not authorized to perform this operation.
|
ERROR_NOT_LOGGED_IN
The user is not logged in or the login validity has expired.
|
ERROR_NOT_SUPPORTED
Device does not support this functionality.
|
ERROR_RISK
Risk assessment failed.
|
ERROR_TIMED_OUT
Timeout happened while executing the operation.
|
Modifier and Type | Method and Description |
---|---|
int |
getCode()
Retrieve the code number of this error.
|
String |
getMessage()
Retrieve the underlying error and current error description.
|
String |
getRecoverySuggestion()
Retrieve recovery suggestion for this error.
|
static D1Exception.ErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static D1Exception.ErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final D1Exception.ErrorCode ERROR_CANCELLED
public static final D1Exception.ErrorCode ERROR_TIMED_OUT
public static final D1Exception.ErrorCode ERROR_NOT_LOGGED_IN
public static final D1Exception.ErrorCode ERROR_NOT_AUTHORIZED
public static final D1Exception.ErrorCode ERROR_DEVICE_ENVIRONMENT_UNSAFE
public static final D1Exception.ErrorCode ERROR_NOT_SUPPORTED
public static final D1Exception.ErrorCode ERROR_CARD_NOT_FOUND
public static final D1Exception.ErrorCode ERROR_CORE
NOTE:
Integrator should check the underlying errors for more details.
public static final D1Exception.ErrorCode ERROR_NO_CARD_ACTIVATION_METHOD
public static final D1Exception.ErrorCode ERROR_RISK
NOTE:
Integrator should check the underlying errors for more details and also ensure that:
Category - Risk API
D1Task.Builder#setRiskURLString(String)
,
D1Task.Builder#setRiskClientID(String)
public static final D1Exception.ErrorCode ERROR_CARD
NOTE:
Integrator should check the underlying errors for more details.
Ensure card configurations are correct and the device has internet connection.
Category - Card API
public static final D1Exception.ErrorCode ERROR_CARD_NO_PENDING_IDV
CardDigitizationState.PENDING_IDV
.
Integrator may check the state of the card by calling D1Task.getCardDigitizationState(String, D1Task.Callback)
.
Category - Card API
public static final D1Exception.ErrorCode ERROR_D1PAY
NOTE:
Integrator should check the underlying errors for more details.
Ensure d1pay configurations are correct and the device has internet connection.
Category - D1PAY API
public static final D1Exception.ErrorCode ERROR_D1PAY_UNRECOVERABLE
NOTE:
Integrator is suggested to call D1PayWallet.reset(Context)
to clear all D1Pay internal data.
Category - D1PAY API
D1PayWallet.reset(Context)
public static D1Exception.ErrorCode[] values()
for (D1Exception.ErrorCode c : D1Exception.ErrorCode.values()) System.out.println(c);
public static D1Exception.ErrorCode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getCode()
public String getMessage()
public String getRecoverySuggestion()