Enum D1Exception.ErrorCode
- java.lang.Object
-
- java.lang.Enum<D1Exception.ErrorCode>
-
- com.thalesgroup.gemalto.d1.D1Exception.ErrorCode
-
- All Implemented Interfaces:
Serializable
,Comparable<D1Exception.ErrorCode>
- Enclosing class:
- D1Exception
public static enum D1Exception.ErrorCode extends Enum<D1Exception.ErrorCode>
D1 error code.NOTE:
EachD1Exception
returned by D1 SDK contains one of these error codes. Integrator should check itsgetMessage()
orgetRecoverySuggestion()
for further information.- Since:
- 1.0.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ERROR_CANCELLED
User cancelled the operationERROR_CARD
Errors encountered whilst executing card operations.ERROR_CARD_NO_PENDING_IDV
No digital card is found withCardDigitizationState.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_DELETION_IN_PROGRESS
D1Pay Token Deletion is in progress.ERROR_D1PAY_DIGITIZATION_COMPLETED
Digitization has been completed for the cardID.ERROR_D1PAY_DIGITIZATION_IN_PROGRESS
Digitization is in progress.ERROR_D1PAY_NO_PUSH_TOKEN
Push Token is not set yet.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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
ERROR_CANCELLED
public static final D1Exception.ErrorCode ERROR_CANCELLED
User cancelled the operation
-
ERROR_TIMED_OUT
public static final D1Exception.ErrorCode ERROR_TIMED_OUT
Timeout happened while executing the operation.
-
ERROR_NOT_LOGGED_IN
public static final D1Exception.ErrorCode ERROR_NOT_LOGGED_IN
The user is not logged in or the login validity has expired. Please login before performing subsequent requests.
-
ERROR_NOT_AUTHORIZED
public static final D1Exception.ErrorCode ERROR_NOT_AUTHORIZED
The user is not authorized to perform this operation. Retry the operation again.
-
ERROR_DEVICE_ENVIRONMENT_UNSAFE
public static final D1Exception.ErrorCode ERROR_DEVICE_ENVIRONMENT_UNSAFE
The device environment is potentially unsafe. Please ensure that the device environment is safe. Ensure that the device environment is safe.
-
ERROR_NOT_SUPPORTED
public static final D1Exception.ErrorCode ERROR_NOT_SUPPORTED
Device does not support this functionality. It could be because of variety of reasons, e.g. enabling SAMSUNG PAY on a non-SAMSUNG device.
-
ERROR_CARD_NOT_FOUND
public static final D1Exception.ErrorCode ERROR_CARD_NOT_FOUND
The provided cardID is not found.
-
ERROR_CORE
public static final D1Exception.ErrorCode ERROR_CORE
Generic error of CORE module.NOTE:
Integrator should check the underlying errors for more details.
-
ERROR_NO_CARD_ACTIVATION_METHOD
public static final D1Exception.ErrorCode ERROR_NO_CARD_ACTIVATION_METHOD
-
ERROR_RISK
public static final D1Exception.ErrorCode ERROR_RISK
Risk assessment failed.NOTE:
Integrator should check the underlying errors for more details and also ensure that:- Risk credentials are correct.
- The device has Internet connection.
Category - Risk API
- See Also:
D1Task.Builder#setRiskURLString(String)
,D1Task.Builder#setRiskClientID(String)
-
ERROR_CARD
public static final D1Exception.ErrorCode ERROR_CARD
Errors encountered whilst executing card operations.NOTE:
Integrator should check the underlying errors for more details. Ensure card configurations are correct and the device has internet connection.Category - Card API
-
ERROR_CARD_NO_PENDING_IDV
public static final D1Exception.ErrorCode ERROR_CARD_NO_PENDING_IDV
No digital card is found withCardDigitizationState.PENDING_IDV
.Integrator may check the state of the card by calling
D1Task.getCardDigitizationState(String, D1Task.Callback)
.Category - Card API
-
ERROR_D1PAY
public static final D1Exception.ErrorCode ERROR_D1PAY
Errors encountered whilst executing D1 Pay operations.NOTE:
Integrator should check the underlying errors for more details. Ensure d1pay configurations are correct and the device has internet connection.Category - D1PAY API
-
ERROR_D1PAY_UNRECOVERABLE
public static final D1Exception.ErrorCode ERROR_D1PAY_UNRECOVERABLE
Unrecoverable error happened while executing D1 Pay operation.NOTE:
Integrator is suggested to callD1PayWallet.reset(Context)
to clear all D1Pay internal data.Category - D1PAY API
- See Also:
D1PayWallet.reset(Context)
-
ERROR_D1PAY_NO_PUSH_TOKEN
public static final D1Exception.ErrorCode ERROR_D1PAY_NO_PUSH_TOKEN
Push Token is not set yet. Push token is mandatory for D1Pay Digitization.NOTE:
Integrator is suggested to callD1Task.updatePushToken(String, D1Task.Callback)
before Digitization.Category - D1PAY API
-
ERROR_D1PAY_DIGITIZATION_IN_PROGRESS
public static final D1Exception.ErrorCode ERROR_D1PAY_DIGITIZATION_IN_PROGRESS
Digitization is in progress. We cannot allow multiple digitization at the same time. End user must wait for 5 minutes to start another digitizationNOTE:
Integrator is suggested to ask End User to simply wait for 5 minutes. 5 minutes value is configurable onD1PayConfigParams.setPollingEndTimeForDigitization(int)
.Category - D1PAY API
-
ERROR_D1PAY_DIGITIZATION_COMPLETED
public static final D1Exception.ErrorCode ERROR_D1PAY_DIGITIZATION_COMPLETED
Digitization has been completed for the cardID.NOTE:
Integrator is suggested to callD1PayWallet.getCardDigitizationState(String, D1Task.Callback)
to check Digital Card State.Category - D1PAY API
-
ERROR_D1PAY_DELETION_IN_PROGRESS
public static final D1Exception.ErrorCode ERROR_D1PAY_DELETION_IN_PROGRESS
D1Pay Token Deletion is in progress. This may happen rarely if Digitization stopped in the middle for any reason, for example, End User kill the Application or Application Crash.NOTE:
Integrator is suggested to wait for Push Notification onD1PayDataChangedListener.onDataChanged(String, State)
forState.DELETED
before Digitization again.Category - D1PAY API
-
-
Method Detail
-
values
public static D1Exception.ErrorCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (D1Exception.ErrorCode c : D1Exception.ErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static D1Exception.ErrorCode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getCode
public int getCode()
Retrieve the code number of this error.- Returns:
- The code number.
-
getMessage
public String getMessage()
Retrieve the underlying error and current error description.- Returns:
- The error description.
-
getRecoverySuggestion
public String getRecoverySuggestion()
Retrieve recovery suggestion for this error.- Returns:
- The recovery suggestion.
-
-