Class TMGClientException

  • All Implemented Interfaces:
    Serializable

    public class TMGClientException
    extends Exception
    TMGClientException is generic exception class to handle all TMG SDK errors. TMGClientException provides exceptionType through which called will get exact reason for error
    Since:
    1.0
    Version:
    1.0
    See Also:
    Serialized Form
    • Field Detail

      • AUTHENTICATION_FAILURE_CANCEL

        public static final int AUTHENTICATION_FAILURE_CANCEL
        Authentication failure. The device authentication was canceled. (Keyguard/Biometric).
        Since:
        v1.0.1
        See Also:
        Constant Field Values
      • DEVICE_AUTHENTICATION_NOT_SUPPORTED

        public static final int DEVICE_AUTHENTICATION_NOT_SUPPORTED
        Biometric or Keyguard Authentication is not available in the device.

        Please setup on the Android Settings.

        Since:
        v1.0.2
        See Also:
        Constant Field Values
      • INVALID_AUTHENTICATION_METHOD

        public static final int INVALID_AUTHENTICATION_METHOD
        Biometric or Keyguard Authentication is not available in the device.

        Please setup on the Android Settings.

        Since:
        v1.0.1
        See Also:
        Constant Field Values
      • SERVER_IS_NOT_ACCESSIBLE

        public static final int SERVER_IS_NOT_ACCESSIBLE
        Connection issues.

        Please check your network connection and try again.

        Since:
        v1.0.2
        See Also:
        Constant Field Values
      • SERVER_ERROR_CRYPTO_ERROR

        public static final int SERVER_ERROR_CRYPTO_ERROR
        Crypto server error due to keystore issue.

        Please try again or you can log the error report and send it to Thales.

        Since:
        v1.0.2
        See Also:
        Constant Field Values
      • SERVER_ERROR_INVALID_TOKEN_STATE

        public static final int SERVER_ERROR_INVALID_TOKEN_STATE
        Invalid token state server error.
        Since:
        v1.0.2
        See Also:
        Constant Field Values
      • SERVER_ERROR_IDV_NOT_AVAILABLE

        public static final int SERVER_ERROR_IDV_NOT_AVAILABLE
        Selected invalid IDV method.

        Please select another IDV method.

        Since:
        v1.0.2
        See Also:
        Constant Field Values
      • SERVER_ERROR_NO_SESSION_FOUND

        public static final int SERVER_ERROR_NO_SESSION_FOUND
        The session was not found / expired / terminated.

        Call VisaCTFHelper.createBinding again to continue.

        Since:
        v1.0.2
        See Also:
        Constant Field Values
      • SERVER_ERROR_WRONG_OTP

        public static final int SERVER_ERROR_WRONG_OTP
        Invalid OTP value.

        Please try again.

        Since:
        v1.0.2
        See Also:
        Constant Field Values
      • SERVER_ERROR_EXPIRED_OTP

        public static final int SERVER_ERROR_EXPIRED_OTP
        OTP has expired.

        Please try again.

        Since:
        v1.0.2
        See Also:
        Constant Field Values
      • SERVER_ERROR_RETRY_LIMIT_EXCEEDED

        public static final int SERVER_ERROR_RETRY_LIMIT_EXCEEDED
        The authentication has exceeded the attempt limit.

        Please try again.

        Since:
        v1.0.2
        See Also:
        Constant Field Values
      • SERVER_ERROR

        public static final int SERVER_ERROR
        Represent server error code between 401 to 599 (Not including 429, 503, and those that has been defined.
        Since:
        v1.0.2
        See Also:
        Constant Field Values
      • SERVER_ERROR_TOO_MANY_REQUESTS

        public static final int SERVER_ERROR_TOO_MANY_REQUESTS
        Server is unable to process request due to too many requests.

        Please try again.

        Since:
        v1.0.2
        See Also:
        Constant Field Values
      • SERVER_RETRYABLE

        public static final int SERVER_RETRYABLE
        This error code represent server error that is retryable.

        Please try again.

        Since:
        v1.0.2
        See Also:
        Constant Field Values
      • CRYPTO_ERROR

        public static final int CRYPTO_ERROR
        Key issues.
        Since:
        v1.0.2
        See Also:
        Constant Field Values
      • INVALID_PARAMETERS

        public static final int INVALID_PARAMETERS
        Some of the configuration parameters, like provisioned token are invalid.

        Please try again.

        Since:
        v1.0.1
        See Also:
        Constant Field Values
      • INVALID_DEVICE_AUTHENTICATION_PARAM

        public static final int INVALID_DEVICE_AUTHENTICATION_PARAM
        Missing Fragment Activity on the parameter.
        Since:
        v1.0.1
        See Also:
        Constant Field Values
      • STORAGE_ERROR

        public static final int STORAGE_ERROR
        The device authentication method is not found in the storage.

        Check for valid CVM method by checking if token details has selected CVM method.

        Since:
        v1.0.2
        See Also:
        Constant Field Values
      • TOKEN_NOT_BOUNDED

        public static final int TOKEN_NOT_BOUNDED
        The create binding process is still in pending state.

        Please complete the create binding process.

        Since:
        v1.0.1
        See Also:
        Constant Field Values
      • TOKEN_DEVICE_BINDING_PENDING

        public static final int TOKEN_DEVICE_BINDING_PENDING
        The create binding process is still in pending state.

        Please complete the create binding process.

        Since:
        v1.0.2
        See Also:
        Constant Field Values
      • TOKEN_DEVICE_BINDING_DECLINED

        public static final int TOKEN_DEVICE_BINDING_DECLINED
        The token device binding declined.
        Since:
        v1.0.2
        See Also:
        Constant Field Values
      • INVALID_IDV_METHOD

        public static final int INVALID_IDV_METHOD
        The provided IDV method is invalid.
        Since:
        v1.0.1
        See Also:
        Constant Field Values
      • ISSUER_AUTHENTICATION_REQUIRED

        public static final int ISSUER_AUTHENTICATION_REQUIRED
        Issuer authentication required.

        Please use PendingBindingSession.submitIdvMethod().

        Since:
        v1.0.1
        See Also:
        Constant Field Values
      • INVALID_OTP

        public static final int INVALID_OTP
        The provided otp is in bad format. The otp should not be null, empty or more than 8 digits.
        Since:
        v1.0.1
        See Also:
        Constant Field Values
      • JSON_PARSING_ERROR

        public static final int JSON_PARSING_ERROR
        Error parsing json.
        Since:
        v1.0.1
        See Also:
        Constant Field Values
      • INVALID_TOKEN_ID

        public static final int INVALID_TOKEN_ID
        The provided Visa Provisioned Token Id is null or empty.
        Since:
        v1.0.1
        See Also:
        Constant Field Values
      • KEYSTORE_ERROR

        public static final int KEYSTORE_ERROR
        Key permanently invalidated.
        Since:
        v1.0.2
        See Also:
        Constant Field Values
      • SERVER_ERROR_IDV_CANCELED

        public static final int SERVER_ERROR_IDV_CANCELED
        User canceled the IDV authentication

        Please select another IDV method.

        Since:
        v1.1.0
        See Also:
        Constant Field Values
    • Constructor Detail

      • TMGClientException

        public TMGClientException​(int errorCode,
                                  String message)
      • TMGClientException

        public TMGClientException​(int errorCode,
                                  @NonNull
                                  Throwable e)
    • Method Detail

      • getErrorCode

        public int getErrorCode()
        Returns error code