Enum Class MGErrorCode

java.lang.Object
java.lang.Enum<MGErrorCode>
com.gemalto.mfs.mwsdk.mobilegateway.enrollment.MGErrorCode
All Implemented Interfaces:
Serializable, Comparable<MGErrorCode>, Constable

public enum MGErrorCode extends Enum<MGErrorCode>
MGErrorCode provides the different types of errors that are returned by the Mobile Gateway library.
  • Enum Constant Details

    • NO_INTERNET

      public static final MGErrorCode NO_INTERNET
    • CONNECTION_TIMEOUT

      public static final MGErrorCode CONNECTION_TIMEOUT
    • COMMUNICATION_ERROR

      public static final MGErrorCode COMMUNICATION_ERROR
    • SERVER_ERROR

      public static final MGErrorCode SERVER_ERROR
    • INTERNAL_ERROR

      public static final MGErrorCode INTERNAL_ERROR
    • FPAN_NOT_ELIGIBLE

      public static final MGErrorCode FPAN_NOT_ELIGIBLE
    • UNKNOWN_BIN

      public static final MGErrorCode UNKNOWN_BIN
    • UNKNOWN_CARD_PRODUCT

      public static final MGErrorCode UNKNOWN_CARD_PRODUCT
    • CARD_PRODUCT_NOT_SUPPORTED

      public static final MGErrorCode CARD_PRODUCT_NOT_SUPPORTED
    • INCORRECT_CVV

      public static final MGErrorCode INCORRECT_CVV
    • CARD_ALREADY_PROVISIONED_IN_WALLET

      public static final MGErrorCode CARD_ALREADY_PROVISIONED_IN_WALLET
    • DEVICE_NOT_ELIGIBLE

      public static final MGErrorCode DEVICE_NOT_ELIGIBLE
    • RESOURCE_NOT_FOUND

      public static final MGErrorCode RESOURCE_NOT_FOUND
    • INCORRECT_AUTHENTICATION_TOKEN

      public static final MGErrorCode INCORRECT_AUTHENTICATION_TOKEN
    • CARD_PROVISIONING_COUNT_EXCEEDED

      public static final MGErrorCode CARD_PROVISIONING_COUNT_EXCEEDED
    • UNKONOWN_IDV_METHOD

      public static final MGErrorCode UNKONOWN_IDV_METHOD
    • PROVISIONING_NOT_ALLOWED

      public static final MGErrorCode PROVISIONING_NOT_ALLOWED
    • INCORRECT_OTP

      public static final MGErrorCode INCORRECT_OTP
    • INCORRECT_OTP_MAX_TRY_EXCEEDED

      public static final MGErrorCode INCORRECT_OTP_MAX_TRY_EXCEEDED
    • OTP_EXPIRED

      public static final MGErrorCode OTP_EXPIRED
    • IDV_METHOD_NOT_AVAILABLE

      public static final MGErrorCode IDV_METHOD_NOT_AVAILABLE
    • UNEXPECTED_INTERNAL_ERROR

      public static final MGErrorCode UNEXPECTED_INTERNAL_ERROR
    • EXTERNAL_SYSTEM_UNAVAILABLE

      public static final MGErrorCode EXTERNAL_SYSTEM_UNAVAILABLE
    • UNKNOWN_WALLET_PROVIDER_ID

      public static final MGErrorCode UNKNOWN_WALLET_PROVIDER_ID
    • UNKNOWN_WALLET_ID

      public static final MGErrorCode UNKNOWN_WALLET_ID
    • UNKNOWN_DIGITAL_CARD_ID

      public static final MGErrorCode UNKNOWN_DIGITAL_CARD_ID
    • UNKNOWN_CORRELATION_ID

      public static final MGErrorCode UNKNOWN_CORRELATION_ID
    • CARD_STATE_DOES_NOT_ALLOW_REQUESTED_OPERATION

      public static final MGErrorCode CARD_STATE_DOES_NOT_ALLOW_REQUESTED_OPERATION
    • OPERATION_ALREADY_ONGOING

      public static final MGErrorCode OPERATION_ALREADY_ONGOING
    • OPERATION_FAILED

      public static final MGErrorCode OPERATION_FAILED
    • UNKNOWN_DEVICE_ID

      public static final MGErrorCode UNKNOWN_DEVICE_ID
    • MISSING_REQUIRED_PARAMETER

      public static final MGErrorCode MISSING_REQUIRED_PARAMETER
    • UNKNOWN_ISSUER_ID

      public static final MGErrorCode UNKNOWN_ISSUER_ID
    • UNKNOWN_CARD_ID

      public static final MGErrorCode UNKNOWN_CARD_ID
    • NO_TNC_RESOURCE_ID

      public static final MGErrorCode NO_TNC_RESOURCE_ID
    • INVALID_TNC_DATA_TYPE

      public static final MGErrorCode INVALID_TNC_DATA_TYPE
    • SECURESTORAGE_WRITE_CONFIG_DATA_ERROR

      public static final MGErrorCode SECURESTORAGE_WRITE_CONFIG_DATA_ERROR
    • SECURESTORAGE_WIPE_ALL_ERROR

      public static final MGErrorCode SECURESTORAGE_WIPE_ALL_ERROR
    • CONTEXT_MISSING_ERROR

      public static final MGErrorCode CONTEXT_MISSING_ERROR
    • WEB_3DS_AUTHENTICATION_FAILED

      public static final MGErrorCode WEB_3DS_AUTHENTICATION_FAILED
    • WEB_3DS_DATA_ERROR

      public static final MGErrorCode WEB_3DS_DATA_ERROR
    • APP_TO_APP_DATA_ERROR

      public static final MGErrorCode APP_TO_APP_DATA_ERROR
    • INVALID_CARD_DATA

      public static final MGErrorCode INVALID_CARD_DATA
    • NO_CARD_META_DATA

      public static final MGErrorCode NO_CARD_META_DATA
    • CARD_META_DATA_JSON_ERROR

      public static final MGErrorCode CARD_META_DATA_JSON_ERROR
    • NO_CARD_DATA

      public static final MGErrorCode NO_CARD_DATA
    • INVALID_ASSET_TYPE

      public static final MGErrorCode INVALID_ASSET_TYPE
    • INVALID_ASSET_VERSION

      public static final MGErrorCode INVALID_ASSET_VERSION
    • ASSET_NOT_AVAILABLE

      public static final MGErrorCode ASSET_NOT_AVAILABLE
    • BLOCKED_SECURE_WALLET_ENROLLMENT_REQUIRED

      public static final MGErrorCode BLOCKED_SECURE_WALLET_ENROLLMENT_REQUIRED
    • DEVICE_SUSPICIOUS

      public static final MGErrorCode DEVICE_SUSPICIOUS
      This error is returned when the device is found to be suspicious, and this operation cannot continue.
      Since:
      TSH Pay SDK 6.5.0
    • SERVER_RESPONSE_JSON_ERROR

      public static final MGErrorCode SERVER_RESPONSE_JSON_ERROR
      This error is returned during the parsing of a JSON server response.
      Since:
      6.6
    • INVALID_PUSH_SESSION_ID

      public static final MGErrorCode INVALID_PUSH_SESSION_ID
      This error is returned when we use checkEligilbility with pushSessionId and when pushSessionId is not found or invalid
      Since:
      6.13.0
    • INVALID_ELIGIBILITY_DATA

      public static final MGErrorCode INVALID_ELIGIBILITY_DATA
      This error is returned when we use checkEligilbility with pushSessionId if eligibility data is null
      Since:
      6.13.0
  • Method Details

    • values

      public static MGErrorCode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MGErrorCode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getCode

      public String getCode()