Package com.meawallet.mpp
Class MppErrorCode
java.lang.Object
com.meawallet.mpp.MppErrorCode
Error codes.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Data validation error received from MeaWallet Token Management (601).static final int
Debugger is attached (106).static final int
Generic network problem occurred (201).static final int
General Google Pay error (701).static final int
Google Pay token for card already exists (703).static final int
Google Pay token for card not found (702).static final int
Request header API key processing error received from MeaWallet Token Management (603).static final int
Request header secret processing error received from MeaWallet Token Management (605).static final int
Request header trace key processing error received from MeaWallet Token Management (604).static final int
Some input data is incorrect (505).static final int
Server returned incorrect response code (208).static final int
Internal library error (501).static final int
Issue on the server side (508).static final int
Wrong protocol implementation between MPP and Mastercard or Issuer has been onboarded with invalid certificates (608).static final int
Mastercard is temporary unavailable (607).static final int
Network connection timeout error (202).static final int
No network connection (109).static final int
Library is not initialized (101).static final int
The operation was cancelled by user (1).static final int
Android versions below 4.4 (KitKat) is not supported (102).static final int
Library failed to process remote data (507).static final int
Gateway timeout error received from MeaWallet Token Management (606).static final int
General Samsung Pay error (801).static final int
This error indicates that server was unable to verify the card operation.static final int
General Samsung Pay push error (805).static final int
Samsung Pay token for card already exists (803).static final int
Samsung Pay token for card not found (802).static final int
General Samsung Pay wallet error (804).static final int
Sdk debug build is used in application release build (112).static final int
SSL handshake have failed (207).static final int
Failed to retrieve Google Pay Stable Hardware Id (2).static final int
Host not found (204).static final int
Library version rollback (503). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getDescription
(int errorCode) Get error code description.static String
getName
(int errorCode) Get error code namestatic boolean
isErrorCode
(int errorCode)
-
Field Details
-
OPERATION_CANCELLED_BY_USER
public static final int OPERATION_CANCELLED_BY_USERThe operation was cancelled by user (1).- See Also:
-
STABLE_HARDWARE_ID_ERROR
public static final int STABLE_HARDWARE_ID_ERRORFailed to retrieve Google Pay Stable Hardware Id (2).- See Also:
-
NOT_INITIALIZED
public static final int NOT_INITIALIZEDLibrary is not initialized (101).- See Also:
-
OS_VERSION_NOT_SUPPORTED
public static final int OS_VERSION_NOT_SUPPORTEDAndroid versions below 4.4 (KitKat) is not supported (102).- See Also:
-
DEBUGGER_ATTACHED
public static final int DEBUGGER_ATTACHEDDebugger is attached (106). Debugger usage is not allowed.- See Also:
-
NO_NETWORK_CONNECTION
public static final int NO_NETWORK_CONNECTIONNo network connection (109).- See Also:
-
SDK_DEBUG_IN_APP_RELEASE_NOT_ALLOWED
public static final int SDK_DEBUG_IN_APP_RELEASE_NOT_ALLOWEDSdk debug build is used in application release build (112).- See Also:
-
GENERIC_NETWORK_PROBLEM
public static final int GENERIC_NETWORK_PROBLEMGeneric network problem occurred (201).- See Also:
-
NETWORK_TIMEOUT
public static final int NETWORK_TIMEOUTNetwork connection timeout error (202).- See Also:
-
UNKNOWN_HOST
public static final int UNKNOWN_HOSTHost not found (204).- See Also:
-
SSL_HANDSHAKE_FAILED
public static final int SSL_HANDSHAKE_FAILEDSSL handshake have failed (207).- See Also:
-
INCORRECT_SERVER_RESPONSE_CODE
public static final int INCORRECT_SERVER_RESPONSE_CODEServer returned incorrect response code (208).- See Also:
-
INTERNAL_ERROR
public static final int INTERNAL_ERRORInternal library error (501).- See Also:
-
VERSION_ROLLBACK
public static final int VERSION_ROLLBACKLibrary version rollback (503). Usage of later library versions is not allowed.- See Also:
-
INCORRECT_INPUT_DATA
public static final int INCORRECT_INPUT_DATASome input data is incorrect (505).- See Also:
-
REMOTE_DATA_ERROR
public static final int REMOTE_DATA_ERRORLibrary failed to process remote data (507).- See Also:
-
INTERNAL_SERVER_ERROR
public static final int INTERNAL_SERVER_ERRORIssue on the server side (508).- See Also:
-
DATA_VALIDATION_ERROR
public static final int DATA_VALIDATION_ERRORData validation error received from MeaWallet Token Management (601).- See Also:
-
HEADER_API_KEY_ID_ERROR
public static final int HEADER_API_KEY_ID_ERRORRequest header API key processing error received from MeaWallet Token Management (603).- See Also:
-
HEADER_TRACE_ID_ERROR
public static final int HEADER_TRACE_ID_ERRORRequest header trace key processing error received from MeaWallet Token Management (604).- See Also:
-
HEADER_SECRET_ERROR
public static final int HEADER_SECRET_ERRORRequest header secret processing error received from MeaWallet Token Management (605).- See Also:
-
REMOTE_GATEWAY_TIMEOUT_ERROR
public static final int REMOTE_GATEWAY_TIMEOUT_ERRORGateway timeout error received from MeaWallet Token Management (606).- See Also:
-
MASTERCARD_TEMPORARY_UNAVAILABLE
public static final int MASTERCARD_TEMPORARY_UNAVAILABLEMastercard is temporary unavailable (607).- See Also:
-
MASTERCARD_SETUP_ERROR
public static final int MASTERCARD_SETUP_ERRORWrong protocol implementation between MPP and Mastercard or Issuer has been onboarded with invalid certificates (608).- See Also:
-
GOOGLE_PAY_ERROR
public static final int GOOGLE_PAY_ERRORGeneral Google Pay error (701).- See Also:
-
GOOGLE_PAY_TOKEN_NOT_FOUND
public static final int GOOGLE_PAY_TOKEN_NOT_FOUNDGoogle Pay token for card not found (702).- See Also:
-
GOOGLE_PAY_TOKEN_ALREADY_EXISTS
public static final int GOOGLE_PAY_TOKEN_ALREADY_EXISTSGoogle Pay token for card already exists (703).- See Also:
-
SAMSUNG_PAY_ERROR
public static final int SAMSUNG_PAY_ERRORGeneral Samsung Pay error (801).- See Also:
-
SAMSUNG_PAY_TOKEN_NOT_FOUND
public static final int SAMSUNG_PAY_TOKEN_NOT_FOUNDSamsung Pay token for card not found (802).- See Also:
-
SAMSUNG_PAY_TOKEN_ALREADY_EXISTS
public static final int SAMSUNG_PAY_TOKEN_ALREADY_EXISTSSamsung Pay token for card already exists (803).- See Also:
-
SAMSUNG_PAY_WALLET_ERROR
public static final int SAMSUNG_PAY_WALLET_ERRORGeneral Samsung Pay wallet error (804).- See Also:
-
SAMSUNG_PAY_PUSH_ERROR
public static final int SAMSUNG_PAY_PUSH_ERRORGeneral Samsung Pay push error (805).- See Also:
-
SAMSUNG_PAY_ERROR_VERIFY_CARD
public static final int SAMSUNG_PAY_ERROR_VERIFY_CARDThis error indicates that server was unable to verify the card operation.- See Also:
-
-
Constructor Details
-
MppErrorCode
public MppErrorCode()
-
-
Method Details
-
getDescription
Get error code description.- Parameters:
errorCode
- Error code integer value- Returns:
- Error code description as string.
-
getName
Get error code name- Parameters:
errorCode
- Error code integer value- Returns:
- Error code name as string
-
isErrorCode
public static boolean isErrorCode(int errorCode)
-