Enum TPCSDKExceptionType
- java.lang.Object
-
- java.lang.Enum<TPCSDKExceptionType>
-
- com.thalesgroup.tpcsdk.manager.exception.TPCSDKExceptionType
-
- All Implemented Interfaces:
Serializable,Comparable<TPCSDKExceptionType>
public enum TPCSDKExceptionType extends Enum<TPCSDKExceptionType>
TPCSDKExceptionType provide information about exception like error code, error message- Since:
- 1.0
- Version:
- 1.1
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INVALID_CALLBACK_LISTENER_LOGTPC_DEVELOPER_ERRORThis error is thrown if the application passes the invalid mandatory configuration data during the SDK initialization.TPC_DEVICE_SUSPICIOUSTPC_GPAY_DIGITIZATION_IN_PROGRESSThis error is thrown when a Google Pay digitization flow is already active.TPC_GPAY_INTERNAL_ERRORThis error is thrown to handle default error cases during Google Pay create wallet or add card process.TPC_GPAY_MISSING_PARAMTPC SDK throws this error in case unable to fetch walletId and deviceId during the push provision process.TPC_GPAY_NO_ACTIVE_WALLETThis error is thrown when GPay wallet is unavailable, most likely user deleted his wallet.TPC_GPAY_UNAVAILABLEThis error is thrown when TapAndPay library can't be used, most likely because the app is not whitelisted.TPC_GPAY_WRONG_ACTIVITYThis error is thrown when Google Pay uses wrong activity to return the callback.TPC_HPAY_DEVICE_INFO_ERRORThis error is thrown when there's an error upon retrieving a device info from Huawei Pay Wallet.TPC_HPAY_NOT_HUAWEI_DEVICEThis error is thrown by TPC SDK in case the device being used is not a Huawei device.TPC_HPAY_PROVISIONING_ERRORThis error is thrown when there's an error during provisioning.TPC_HPAY_PROVISIONING_FAIL_IN_PUSH_INQUIRYThis error is thrown when there's an error during provisioning inquiry.TPC_HPAY_PROVISIONING_REQUEST_MISSINGThis error is thrown when there's a missing item in the provisioning request.TPC_HPAY_PROVISIONING_UNKNOWN_ERRORThis error is thrown when there's an unknown error during provisioning.TPC_HPAY_PROVISIONING_VALIDATE_IDENTIFICATION_FAILThis error is thrown when card ID&V process fail.TPC_HPAY_SERVICE_NOT_STARTED_ERRORThis error is thrown when Huawei Pay service is not yet started.TPC_HTTP_BAD_GATEWAYThis error is seen when the server, while acting as a gateway or proxy, received an invalid response from the upstream server it accessed in attempting to fulfill the request.TPC_HTTP_BAD_METHODThe request method is known by the server but has been disabled and cannot be used.TPC_HTTP_BAD_REQUESTThe server could not understand the request due to invalid syntax.TPC_HTTP_CLIENT_TIMEOUTThis error code means the client did not produce a request within the time that the server was prepared to wait.TPC_HTTP_CONFLICTThis error occurs when the request could not be completed due to a conflict with the current state of the resource.TPC_HTTP_FORBIDDENThe client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to give the requested resource.TPC_HTTP_GONEThis error means the requested resource is no longer available at the server and no forwarding address is known.TPC_HTTP_INTERNAL_ERRORThis error happens when the server encountered an unexpected condition which prevented it from fulfilling the request.TPC_HTTP_NOT_ACCEPTABLEThe resource identified by the request is only capable of generating response entities which have content characteristics not acceptable according to the accept headers sent in the request.TPC_HTTP_NOT_FOUNDThis HTTP error is thrown when the server can not find the requested resource.TPC_HTTP_NOT_IMPLEMENTEDThis error is thrown when the server does not support the functionality required to fulfill the request.TPC_HTTP_PROXY_AUTHThis error code is similar to 401 (Unauthorized), but indicates that the client must first authenticate itself with the proxy.TPC_HTTP_TIMEOUTThis error indicates, timeout happened while to establish the connection with the remote host.TPC_HTTP_UNAUTHORIZEDAlthough the HTTP standard specifies "unauthorized", semantically this response means "unauthenticated".TPC_HTTP_UNAVAILABLEThis error indicates, the server is currently unable to handle the request due to a temporary overloading or maintenance of the server.TPC_INIT_FAILEDThis error is thrown when the TPC SDK initialization fails may be due to invalid params by application or OEM SDK init failed.TPC_INTERNAL_ERRORThis is default server error maintained at TPC SDK side and thrown to applicationTPC_INVALID_CARD_SCHEMETPC SDK throws this error when the card scheme passed is not supported by the SDK.TPC_NETWORK_ERRORTPC SDK throws this error to application when received the network error either from Google Pay, Samsung Pay or TSH server in the middle of processTPC_REQUEST_TERMINATEDTPC SDK throws this error when the cancel event is received from the OEM SDK during the push provision once user cancels it.TPC_SCHEMES_PROVISION_FAILTPC SDK throws this error when the pushUrl from the TSH server is empty.TPC_SDK_BAD_PARAMThis error is thrown by TPC SDK, when application sends invalid format params.TPC_SDK_MISSING_PARAMThis error is thrown by TPC SDK, when the issuer does not provide required param(s) to fulfill the request.TPC_SERVER_BAD_PARAMThis error thrown by TPC SDK, when the error code from TSH server is 112, possibly happens when application sends invalid format params.TPC_SERVER_CARD_IS_NOT_DIGITIZEDTPC SDK throws this error when the card is not yet digitized.TPC_SERVER_INVALID_DATAThis error thrown by TPC SDK, when the error received from TSH server is 431 may be due to invalid personal data.TPC_SERVER_INVALID_SERVER_REQUESTThis error thrown by TPC SDK, when server request is invalid format.TPC_SERVER_INVALID_SERVER_RESPONSEThis error thrown by TPC SDK, when server give invalid response format.TPC_SERVER_MISSING_PARAMThis error thrown by TPC SDK, when application do not sends mandatory params required to fulfill the request and the error code from TSH server is 111.TPC_SERVER_NO_DATATPC SDK throws this error when the response from the TSH server is received but empty data.TPC_SERVER_OPERATION_FAILThis error thrown by TPC SDK, when the error received from TSH server is 911.TPC_SERVER_UNEXPECTED_ERRORThis error thrown by TPC SDK, when the error received from TSH server is 921 may be due to unknown error at server side.TPC_SERVER_UNKNOWN_ISSUERThis error thrown by TPC SDK, when the error received from TSH server is 113 when application sends invalid issuerId.TPC_SERVER_WRONG_AUTHENTICATIONThis error thrown by TPC SDK, when application sends wrong authentication code.TPC_SPAY_APP_NEED_TO_UPDATEThis error is thrown by TPC SDK because the device has Samsung Pay application installed but has to be updated.TPC_SPAY_APP_NOT_FOUNDThis error is thrown by TPC SDK in case the device has no Samsung Pay application installed.TPC_SPAY_APP_SETUP_NOT_COMPLETEDThis error is thrown by TPC SDK because the device has Samsung Pay application installed but does not logged into the application.TPC_SPAY_INTERNAL_ERRORThis is the default error thrown during Samsung Pay initialization onTPCManager.config(Config, TPCSDKListener)} and isCardDigitizedPushProvisioning.isCardDigitized(CardInfo, TPCSDKListener)flow.TPC_SPAY_INVALID_SERVICE_IDThis error is thrown by TPC SDK in case issuer application passed wrong serviceId to Samsung SDK during init, isCardDigitized or addCard operations.TPC_SPAY_INVALID_SERVICE_TYPEThis error is thrown by TPC SDK in case issuer application passed invalid service type to Samsung SDK during init, isCardDigitized or addCard operations.TPC_SPAY_NOT_SAMSUNG_DEVICEThis error is thrown by TPC SDK in case the device being used is not a Samsung device.TPC_SPAY_PARTNER_APP_SIGNATURE_MISMATCHThis error is thrown by TPC SDK in case of partner application signature mismatch.TPC_SPAY_PARTNER_APP_VERSION_NOT_SUPPORTEDThis error is thrown by TPC SDK in case of partner application version not supported.TPC_UNSUPPORTED_OPERATIONThis error is thrown when the non-related functionality called by application.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetErrorCode()StringgetErrorMsg()voidsetErrorCode(int errorCode)voidsetErrorMsg(String errorMsg)static TPCSDKExceptionTypevalueOf(String name)Returns the enum constant of this type with the specified name.static TPCSDKExceptionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TPC_INIT_FAILED
public static final TPCSDKExceptionType TPC_INIT_FAILED
This error is thrown when the TPC SDK initialization fails may be due to invalid params by application or OEM SDK init failed.
-
TPC_UNSUPPORTED_OPERATION
public static final TPCSDKExceptionType TPC_UNSUPPORTED_OPERATION
This error is thrown when the non-related functionality called by application.
-
TPC_DEVELOPER_ERROR
public static final TPCSDKExceptionType TPC_DEVELOPER_ERROR
This error is thrown if the application passes the invalid mandatory configuration data during the SDK initialization.
-
TPC_INTERNAL_ERROR
public static final TPCSDKExceptionType TPC_INTERNAL_ERROR
This is default server error maintained at TPC SDK side and thrown to application
-
TPC_NETWORK_ERROR
public static final TPCSDKExceptionType TPC_NETWORK_ERROR
TPC SDK throws this error to application when received the network error either from Google Pay, Samsung Pay or TSH server in the middle of process
-
TPC_HPAY_NOT_HUAWEI_DEVICE
public static final TPCSDKExceptionType TPC_HPAY_NOT_HUAWEI_DEVICE
This error is thrown by TPC SDK in case the device being used is not a Huawei device.
-
TPC_HPAY_PROVISIONING_ERROR
public static final TPCSDKExceptionType TPC_HPAY_PROVISIONING_ERROR
This error is thrown when there's an error during provisioning. Please check the logs for more details and contact our support team.
-
TPC_HPAY_PROVISIONING_REQUEST_MISSING
public static final TPCSDKExceptionType TPC_HPAY_PROVISIONING_REQUEST_MISSING
This error is thrown when there's a missing item in the provisioning request. Please check the logs for more details and contact our support team.
-
TPC_HPAY_PROVISIONING_VALIDATE_IDENTIFICATION_FAIL
public static final TPCSDKExceptionType TPC_HPAY_PROVISIONING_VALIDATE_IDENTIFICATION_FAIL
This error is thrown when card ID&V process fail. Please check the logs for more details and contact our support team.
-
TPC_HPAY_PROVISIONING_FAIL_IN_PUSH_INQUIRY
public static final TPCSDKExceptionType TPC_HPAY_PROVISIONING_FAIL_IN_PUSH_INQUIRY
This error is thrown when there's an error during provisioning inquiry. Please check the logs for more details and contact our support team.
-
TPC_HPAY_PROVISIONING_UNKNOWN_ERROR
public static final TPCSDKExceptionType TPC_HPAY_PROVISIONING_UNKNOWN_ERROR
This error is thrown when there's an unknown error during provisioning. Please check the logs for more details and contact our support team.
-
TPC_HPAY_SERVICE_NOT_STARTED_ERROR
public static final TPCSDKExceptionType TPC_HPAY_SERVICE_NOT_STARTED_ERROR
This error is thrown when Huawei Pay service is not yet started. The service is used to retrieved a device information from Huawei Pay Wallet.
-
TPC_HPAY_DEVICE_INFO_ERROR
public static final TPCSDKExceptionType TPC_HPAY_DEVICE_INFO_ERROR
This error is thrown when there's an error upon retrieving a device info from Huawei Pay Wallet. It could happen when one of these following condition are meet:- The user does not agree to the wallet agreement
- The network is unavailable
- The user has not logged in to the Huawei Wallet
- The current country or region does not have the bank card service. The device information cannot be obtained
- Failed to get openDeviceID from server
-
TPC_GPAY_WRONG_ACTIVITY
public static final TPCSDKExceptionType TPC_GPAY_WRONG_ACTIVITY
This error is thrown when Google Pay uses wrong activity to return the callback.
-
TPC_GPAY_INTERNAL_ERROR
public static final TPCSDKExceptionType TPC_GPAY_INTERNAL_ERROR
This error is thrown to handle default error cases during Google Pay create wallet or add card process.
-
TPC_GPAY_UNAVAILABLE
public static final TPCSDKExceptionType TPC_GPAY_UNAVAILABLE
This error is thrown when TapAndPay library can't be used, most likely because the app is not whitelisted.
-
TPC_GPAY_NO_ACTIVE_WALLET
public static final TPCSDKExceptionType TPC_GPAY_NO_ACTIVE_WALLET
This error is thrown when GPay wallet is unavailable, most likely user deleted his wallet.
-
TPC_GPAY_DIGITIZATION_IN_PROGRESS
public static final TPCSDKExceptionType TPC_GPAY_DIGITIZATION_IN_PROGRESS
This error is thrown when a Google Pay digitization flow is already active.
-
TPC_GPAY_MISSING_PARAM
public static final TPCSDKExceptionType TPC_GPAY_MISSING_PARAM
TPC SDK throws this error in case unable to fetch walletId and deviceId during the push provision process.
-
TPC_SPAY_INTERNAL_ERROR
public static final TPCSDKExceptionType TPC_SPAY_INTERNAL_ERROR
This is the default error thrown during Samsung Pay initialization onTPCManager.config(Config, TPCSDKListener)} and isCardDigitizedPushProvisioning.isCardDigitized(CardInfo, TPCSDKListener)flow.
-
TPC_SPAY_NOT_SAMSUNG_DEVICE
public static final TPCSDKExceptionType TPC_SPAY_NOT_SAMSUNG_DEVICE
This error is thrown by TPC SDK in case the device being used is not a Samsung device.
-
TPC_SPAY_APP_NOT_FOUND
public static final TPCSDKExceptionType TPC_SPAY_APP_NOT_FOUND
This error is thrown by TPC SDK in case the device has no Samsung Pay application installed.
-
TPC_SPAY_APP_SETUP_NOT_COMPLETED
public static final TPCSDKExceptionType TPC_SPAY_APP_SETUP_NOT_COMPLETED
This error is thrown by TPC SDK because the device has Samsung Pay application installed but does not logged into the application.
-
TPC_SPAY_APP_NEED_TO_UPDATE
public static final TPCSDKExceptionType TPC_SPAY_APP_NEED_TO_UPDATE
This error is thrown by TPC SDK because the device has Samsung Pay application installed but has to be updated.
-
TPC_SPAY_INVALID_SERVICE_ID
public static final TPCSDKExceptionType TPC_SPAY_INVALID_SERVICE_ID
This error is thrown by TPC SDK in case issuer application passed wrong serviceId to Samsung SDK during init, isCardDigitized or addCard operations.
-
TPC_SPAY_INVALID_SERVICE_TYPE
public static final TPCSDKExceptionType TPC_SPAY_INVALID_SERVICE_TYPE
This error is thrown by TPC SDK in case issuer application passed invalid service type to Samsung SDK during init, isCardDigitized or addCard operations.
-
TPC_SPAY_PARTNER_APP_SIGNATURE_MISMATCH
public static final TPCSDKExceptionType TPC_SPAY_PARTNER_APP_SIGNATURE_MISMATCH
This error is thrown by TPC SDK in case of partner application signature mismatch.
-
TPC_SPAY_PARTNER_APP_VERSION_NOT_SUPPORTED
public static final TPCSDKExceptionType TPC_SPAY_PARTNER_APP_VERSION_NOT_SUPPORTED
This error is thrown by TPC SDK in case of partner application version not supported.
-
TPC_HTTP_BAD_REQUEST
public static final TPCSDKExceptionType TPC_HTTP_BAD_REQUEST
The server could not understand the request due to invalid syntax.
-
TPC_HTTP_UNAUTHORIZED
public static final TPCSDKExceptionType TPC_HTTP_UNAUTHORIZED
Although the HTTP standard specifies "unauthorized", semantically this response means "unauthenticated". That is, the client must authenticate itself to get the requested response.
-
TPC_HTTP_FORBIDDEN
public static final TPCSDKExceptionType TPC_HTTP_FORBIDDEN
The client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to give the requested resource.
-
TPC_HTTP_NOT_FOUND
public static final TPCSDKExceptionType TPC_HTTP_NOT_FOUND
This HTTP error is thrown when the server can not find the requested resource.
-
TPC_HTTP_BAD_METHOD
public static final TPCSDKExceptionType TPC_HTTP_BAD_METHOD
The request method is known by the server but has been disabled and cannot be used.
-
TPC_HTTP_NOT_ACCEPTABLE
public static final TPCSDKExceptionType TPC_HTTP_NOT_ACCEPTABLE
The resource identified by the request is only capable of generating response entities which have content characteristics not acceptable according to the accept headers sent in the request.
-
TPC_HTTP_PROXY_AUTH
public static final TPCSDKExceptionType TPC_HTTP_PROXY_AUTH
This error code is similar to 401 (Unauthorized), but indicates that the client must first authenticate itself with the proxy.
-
TPC_HTTP_CLIENT_TIMEOUT
public static final TPCSDKExceptionType TPC_HTTP_CLIENT_TIMEOUT
This error code means the client did not produce a request within the time that the server was prepared to wait.
-
TPC_HTTP_CONFLICT
public static final TPCSDKExceptionType TPC_HTTP_CONFLICT
This error occurs when the request could not be completed due to a conflict with the current state of the resource.
-
TPC_HTTP_GONE
public static final TPCSDKExceptionType TPC_HTTP_GONE
This error means the requested resource is no longer available at the server and no forwarding address is known.
-
TPC_HTTP_INTERNAL_ERROR
public static final TPCSDKExceptionType TPC_HTTP_INTERNAL_ERROR
This error happens when the server encountered an unexpected condition which prevented it from fulfilling the request.
-
TPC_HTTP_NOT_IMPLEMENTED
public static final TPCSDKExceptionType TPC_HTTP_NOT_IMPLEMENTED
This error is thrown when the server does not support the functionality required to fulfill the request.
-
TPC_HTTP_BAD_GATEWAY
public static final TPCSDKExceptionType TPC_HTTP_BAD_GATEWAY
This error is seen when the server, while acting as a gateway or proxy, received an invalid response from the upstream server it accessed in attempting to fulfill the request.
-
TPC_HTTP_UNAVAILABLE
public static final TPCSDKExceptionType TPC_HTTP_UNAVAILABLE
This error indicates, the server is currently unable to handle the request due to a temporary overloading or maintenance of the server.
-
TPC_HTTP_TIMEOUT
public static final TPCSDKExceptionType TPC_HTTP_TIMEOUT
This error indicates, timeout happened while to establish the connection with the remote host.
-
TPC_SDK_MISSING_PARAM
public static final TPCSDKExceptionType TPC_SDK_MISSING_PARAM
This error is thrown by TPC SDK, when the issuer does not provide required param(s) to fulfill the request.
-
TPC_SDK_BAD_PARAM
public static final TPCSDKExceptionType TPC_SDK_BAD_PARAM
This error is thrown by TPC SDK, when application sends invalid format params.
-
TPC_SERVER_MISSING_PARAM
public static final TPCSDKExceptionType TPC_SERVER_MISSING_PARAM
This error thrown by TPC SDK, when application do not sends mandatory params required to fulfill the request and the error code from TSH server is 111.
-
TPC_SERVER_INVALID_SERVER_RESPONSE
public static final TPCSDKExceptionType TPC_SERVER_INVALID_SERVER_RESPONSE
This error thrown by TPC SDK, when server give invalid response format.
-
TPC_SERVER_INVALID_SERVER_REQUEST
public static final TPCSDKExceptionType TPC_SERVER_INVALID_SERVER_REQUEST
This error thrown by TPC SDK, when server request is invalid format.
-
TPC_SERVER_BAD_PARAM
public static final TPCSDKExceptionType TPC_SERVER_BAD_PARAM
This error thrown by TPC SDK, when the error code from TSH server is 112, possibly happens when application sends invalid format params.
-
TPC_SERVER_UNKNOWN_ISSUER
public static final TPCSDKExceptionType TPC_SERVER_UNKNOWN_ISSUER
This error thrown by TPC SDK, when the error received from TSH server is 113 when application sends invalid issuerId.
-
TPC_SERVER_INVALID_DATA
public static final TPCSDKExceptionType TPC_SERVER_INVALID_DATA
This error thrown by TPC SDK, when the error received from TSH server is 431 may be due to invalid personal data.
-
TPC_SERVER_OPERATION_FAIL
public static final TPCSDKExceptionType TPC_SERVER_OPERATION_FAIL
This error thrown by TPC SDK, when the error received from TSH server is 911.
-
TPC_SERVER_UNEXPECTED_ERROR
public static final TPCSDKExceptionType TPC_SERVER_UNEXPECTED_ERROR
This error thrown by TPC SDK, when the error received from TSH server is 921 may be due to unknown error at server side.
-
TPC_SERVER_WRONG_AUTHENTICATION
public static final TPCSDKExceptionType TPC_SERVER_WRONG_AUTHENTICATION
This error thrown by TPC SDK, when application sends wrong authentication code.
-
TPC_SERVER_CARD_IS_NOT_DIGITIZED
public static final TPCSDKExceptionType TPC_SERVER_CARD_IS_NOT_DIGITIZED
TPC SDK throws this error when the card is not yet digitized.
-
TPC_SERVER_NO_DATA
public static final TPCSDKExceptionType TPC_SERVER_NO_DATA
TPC SDK throws this error when the response from the TSH server is received but empty data.
-
TPC_REQUEST_TERMINATED
public static final TPCSDKExceptionType TPC_REQUEST_TERMINATED
TPC SDK throws this error when the cancel event is received from the OEM SDK during the push provision once user cancels it.
-
TPC_INVALID_CARD_SCHEME
public static final TPCSDKExceptionType TPC_INVALID_CARD_SCHEME
TPC SDK throws this error when the card scheme passed is not supported by the SDK.
-
TPC_SCHEMES_PROVISION_FAIL
public static final TPCSDKExceptionType TPC_SCHEMES_PROVISION_FAIL
TPC SDK throws this error when the pushUrl from the TSH server is empty.
-
INVALID_CALLBACK_LISTENER_LOG
public static final TPCSDKExceptionType INVALID_CALLBACK_LISTENER_LOG
-
TPC_DEVICE_SUSPICIOUS
public static final TPCSDKExceptionType TPC_DEVICE_SUSPICIOUS
-
-
Method Detail
-
values
public static TPCSDKExceptionType[] 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 (TPCSDKExceptionType c : TPCSDKExceptionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TPCSDKExceptionType 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
-
getErrorCode
public int getErrorCode()
-
setErrorCode
public void setErrorCode(int errorCode)
-
getErrorMsg
public String getErrorMsg()
-
setErrorMsg
public void setErrorMsg(String errorMsg)
-
-