Enum ProvisioningServiceErrorCodes
- java.lang.Object
-
- java.lang.Enum<ProvisioningServiceErrorCodes>
-
- com.gemalto.mfs.mwsdk.provisioning.model.ProvisioningServiceErrorCodes
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ProvisioningServiceErrorCodes>
public enum ProvisioningServiceErrorCodes extends java.lang.Enum<ProvisioningServiceErrorCodes>
Error codes for Provisioning Service operations to indicate an error that happened. The Library User should first check these error codes to see where the issue comes from before further investigating the CPS error.
- Error codes with "Common" prefix can happen in any request.
- Other error codes are prefixed with the corresponding use cases.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ASM_ERROR
Rages errorAUTHENTICATION_REQUIRED
Unable to access keystore for replenish retry.CARD_ACTIVATION_ACTIVATION_CODE_ENTRY_CANCELED
User has cancelled during entering the activation code.CARD_ACTIVATION_MOBILE_PIN_INVALID_LENGTH
User has entered an invalid mobile pin.CARD_ACTIVATION_MOBILE_PIN_MISMATCH
Mobile PIN entry and re-entry do not match.CARD_NOT_ENROLLED
Card is not enrolled or tokenized.CARD_STATE_DESYNCHRO
Card state is desynchronized.CARD_STATE_UNKNOWN
Card state is unknownCHANGE_PIN_CARD_NOT_ACTIVE
Only Active card is allowed to change PIN.CHANGE_PIN_CARD_NOT_EXIST
If card does not exist while change pin.CHANGE_PIN_REENTRY_MISMATCH
The new PIN entry and re-entry entered don't match.COMMON_COMM_ERROR
Communication error occurred while performing request to the server.COMMON_COMM_TIMEOUT_ERROR
Communication error occurred while performing request to the server.COMMON_NO_INTERNET
Internet is not available.COMMON_SERVER_ERROR
Error received from the server.CREDENTIALS_ERROR
Unable to retreive Credentials from storage.DEVICE_STATE_NOT_OK
Server reject the command as device is rootedDEVICE_SUSPICIOUS
Error returned when Device is suspicious.ENROLLMENT_BLOCKED_SECURE_WALLET_ENROLLMENT_REQUIRED
Enrollment is not allowed becuase secure wallet enrollment is not performedENROLLMENT_CREDENTIAL_EXPIRED
The activation code has expired on the server.
This is indicated by the gateway's CREDENTIAL_MUST_BE_CHANGED error code.ENROLLMENT_REQUIRED
Enrollment hasnt been done.ENROLLMENT_TRY_LIMIT_EXCEEDED
Maximum retry for entering the activation code has been reached.ENROLLMENT_WRONG_ACTIVATION_CODE
Activate code is wrongENROLLMENT_WRONG_CREDENTIALS
Incorrect activation code or user id.INVALID_DIGITALCARDID
Digital Card ID inputted is null or emptyINVALID_REPLENISH_MISSING_PAYMENT
Trying to perform replenish Request without doing a single paymentINVALID_SERVER_RESPONSE
Invalid server response received.NULL_CONTEXT
Error code to indicate that context has not been set to the SDK.RE_ENROLLMENT_REQUIRED
For security reason, the user needs to re-enroll the application.REPLENISHMENT_BLOCKED_SECURE_WALLET_ENROLLMENT_REQUIRED
Replenishment is not allowed becuase secure wallet enrollment is not performedREPLENISHMENT_NOT_ALLOWED
Replenishment error when replenishment request is triggered on SUSPENDED card state.REPLENISHMENT_PERMANENT_ERROR
VISA REPLENISH Permanent ErrorRETRY_EXCEEDED
Retry Timeout connection error : This error code returned when the HTTPS Status Code is 504 (HTTP_GATEWAY_TIMEOUT)SDK_INTERNAL_COMPONENT_ERROR
SDK internal error during processing, do not crash SDK but handle thisSDK_NEED_TO_BE_UPGRADED
Server reject the command as mobile payment application need to be upgraded to the newer TSH Pay SDKSDK_NOT_INITIALIZED
SDK initialization is not completed.TRANSACTION_RECORDS_SIGNATURE_VERIFICATION_FAILED
VISA Invalid Mac error
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ProvisioningServiceErrorCodes
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ProvisioningServiceErrorCodes[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COMMON_NO_INTERNET
public static final ProvisioningServiceErrorCodes COMMON_NO_INTERNET
Internet is not available.
This error is also returned if the client has attempted several times to connect but not able to due to very weak network signal.
-
COMMON_COMM_ERROR
public static final ProvisioningServiceErrorCodes COMMON_COMM_ERROR
Communication error occurred while performing request to the server.
-
COMMON_COMM_TIMEOUT_ERROR
public static final ProvisioningServiceErrorCodes COMMON_COMM_TIMEOUT_ERROR
Communication error occurred while performing request to the server.
-
CREDENTIALS_ERROR
public static final ProvisioningServiceErrorCodes CREDENTIALS_ERROR
Unable to retreive Credentials from storage.
-
AUTHENTICATION_REQUIRED
public static final ProvisioningServiceErrorCodes AUTHENTICATION_REQUIRED
Unable to access keystore for replenish retry.
-
COMMON_SERVER_ERROR
public static final ProvisioningServiceErrorCodes COMMON_SERVER_ERROR
Error received from the server.
-
ENROLLMENT_WRONG_CREDENTIALS
public static final ProvisioningServiceErrorCodes ENROLLMENT_WRONG_CREDENTIALS
Incorrect activation code or user id.
-
ENROLLMENT_CREDENTIAL_EXPIRED
public static final ProvisioningServiceErrorCodes ENROLLMENT_CREDENTIAL_EXPIRED
The activation code has expired on the server.
This is indicated by the gateway's CREDENTIAL_MUST_BE_CHANGED error code.
-
ENROLLMENT_TRY_LIMIT_EXCEEDED
public static final ProvisioningServiceErrorCodes ENROLLMENT_TRY_LIMIT_EXCEEDED
Maximum retry for entering the activation code has been reached. The End-User is recommended to get a new set of credentials.
-
CARD_ACTIVATION_ACTIVATION_CODE_ENTRY_CANCELED
public static final ProvisioningServiceErrorCodes CARD_ACTIVATION_ACTIVATION_CODE_ENTRY_CANCELED
User has cancelled during entering the activation code.
-
CARD_ACTIVATION_MOBILE_PIN_INVALID_LENGTH
public static final ProvisioningServiceErrorCodes CARD_ACTIVATION_MOBILE_PIN_INVALID_LENGTH
User has entered an invalid mobile pin. According to ISO 9564 format 1, PIN should be from 4-12 digits.
-
CARD_ACTIVATION_MOBILE_PIN_MISMATCH
public static final ProvisioningServiceErrorCodes CARD_ACTIVATION_MOBILE_PIN_MISMATCH
Mobile PIN entry and re-entry do not match.
-
CHANGE_PIN_REENTRY_MISMATCH
public static final ProvisioningServiceErrorCodes CHANGE_PIN_REENTRY_MISMATCH
The new PIN entry and re-entry entered don't match.
-
CHANGE_PIN_CARD_NOT_ACTIVE
public static final ProvisioningServiceErrorCodes CHANGE_PIN_CARD_NOT_ACTIVE
Only Active card is allowed to change PIN.
-
CHANGE_PIN_CARD_NOT_EXIST
public static final ProvisioningServiceErrorCodes CHANGE_PIN_CARD_NOT_EXIST
If card does not exist while change pin.
-
RE_ENROLLMENT_REQUIRED
public static final ProvisioningServiceErrorCodes RE_ENROLLMENT_REQUIRED
For security reason, the user needs to re-enroll the application.
-
CARD_NOT_ENROLLED
public static final ProvisioningServiceErrorCodes CARD_NOT_ENROLLED
Card is not enrolled or tokenized.
-
CARD_STATE_UNKNOWN
public static final ProvisioningServiceErrorCodes CARD_STATE_UNKNOWN
Card state is unknown
-
REPLENISHMENT_NOT_ALLOWED
public static final ProvisioningServiceErrorCodes REPLENISHMENT_NOT_ALLOWED
Replenishment error when replenishment request is triggered on SUSPENDED card state.
-
SDK_INTERNAL_COMPONENT_ERROR
public static final ProvisioningServiceErrorCodes SDK_INTERNAL_COMPONENT_ERROR
SDK internal error during processing, do not crash SDK but handle this
-
ENROLLMENT_WRONG_ACTIVATION_CODE
public static final ProvisioningServiceErrorCodes ENROLLMENT_WRONG_ACTIVATION_CODE
Activate code is wrong
-
ENROLLMENT_BLOCKED_SECURE_WALLET_ENROLLMENT_REQUIRED
public static final ProvisioningServiceErrorCodes ENROLLMENT_BLOCKED_SECURE_WALLET_ENROLLMENT_REQUIRED
Enrollment is not allowed becuase secure wallet enrollment is not performed
-
REPLENISHMENT_BLOCKED_SECURE_WALLET_ENROLLMENT_REQUIRED
public static final ProvisioningServiceErrorCodes REPLENISHMENT_BLOCKED_SECURE_WALLET_ENROLLMENT_REQUIRED
Replenishment is not allowed becuase secure wallet enrollment is not performed
-
INVALID_REPLENISH_MISSING_PAYMENT
public static final ProvisioningServiceErrorCodes INVALID_REPLENISH_MISSING_PAYMENT
Trying to perform replenish Request without doing a single payment
-
ASM_ERROR
public static final ProvisioningServiceErrorCodes ASM_ERROR
Rages error
-
INVALID_DIGITALCARDID
public static final ProvisioningServiceErrorCodes INVALID_DIGITALCARDID
Digital Card ID inputted is null or empty
-
DEVICE_STATE_NOT_OK
public static final ProvisioningServiceErrorCodes DEVICE_STATE_NOT_OK
Server reject the command as device is rooted- Since:
- TSH Pay SDK 6.1.0
-
SDK_NEED_TO_BE_UPGRADED
public static final ProvisioningServiceErrorCodes SDK_NEED_TO_BE_UPGRADED
Server reject the command as mobile payment application need to be upgraded to the newer TSH Pay SDK- Since:
- TSH Pay SDK 6.1.0
-
CARD_STATE_DESYNCHRO
public static final ProvisioningServiceErrorCodes CARD_STATE_DESYNCHRO
Card state is desynchronized. Here enrollment request is not matching with state in server. Example: SDK request enrollment where card is already enrolled. Here application can first request to delete the card before proceeding with further enrollment.- Since:
- TSH Pay SDK 6.1.0
-
ENROLLMENT_REQUIRED
public static final ProvisioningServiceErrorCodes ENROLLMENT_REQUIRED
Enrollment hasnt been done.- Since:
- TSH Pay SDK 6.1.0
-
RETRY_EXCEEDED
public static final ProvisioningServiceErrorCodes RETRY_EXCEEDED
Retry Timeout connection error : This error code returned when the HTTPS Status Code is 504 (HTTP_GATEWAY_TIMEOUT)- Since:
- TSH Pay SDK 6.4.0
-
TRANSACTION_RECORDS_SIGNATURE_VERIFICATION_FAILED
public static final ProvisioningServiceErrorCodes TRANSACTION_RECORDS_SIGNATURE_VERIFICATION_FAILED
VISA Invalid Mac error- Since:
- TSH Pay SDK 6.3.1
-
REPLENISHMENT_PERMANENT_ERROR
public static final ProvisioningServiceErrorCodes REPLENISHMENT_PERMANENT_ERROR
VISA REPLENISH Permanent Error- Since:
- TSH Pay SDK 6.3.1
-
SDK_NOT_INITIALIZED
public static final ProvisioningServiceErrorCodes SDK_NOT_INITIALIZED
SDK initialization is not completed.- Since:
- 6.4.3
-
NULL_CONTEXT
public static final ProvisioningServiceErrorCodes NULL_CONTEXT
Error code to indicate that context has not been set to the SDK. Please check if Application has setContext to SDK or if SDK initialization has not been called.- Since:
- 6.4.3
-
DEVICE_SUSPICIOUS
public static final ProvisioningServiceErrorCodes DEVICE_SUSPICIOUS
Error returned when Device is suspicious. This operation cannot continue .- Since:
- TSH Pay SDK 6.5.0
-
INVALID_SERVER_RESPONSE
public static final ProvisioningServiceErrorCodes INVALID_SERVER_RESPONSE
Invalid server response received.- Since:
- TSH Pay SDK 6.6.0
-
-
Method Detail
-
values
public static ProvisioningServiceErrorCodes[] 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 (ProvisioningServiceErrorCodes c : ProvisioningServiceErrorCodes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProvisioningServiceErrorCodes valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-