Enum D1Exception.ErrorCode

    • Enum Constant Detail

      • ERROR_CANCELLED

        public static final D1Exception.ErrorCode ERROR_CANCELLED
        User cancelled the operation
      • ERROR_TIMED_OUT

        public static final D1Exception.ErrorCode ERROR_TIMED_OUT
        Timeout happened while executing the operation.
      • ERROR_NOT_LOGGED_IN

        public static final D1Exception.ErrorCode ERROR_NOT_LOGGED_IN
        The user is not logged in or the login validity has expired. Please login before performing subsequent requests.
      • ERROR_NOT_AUTHORIZED

        public static final D1Exception.ErrorCode ERROR_NOT_AUTHORIZED
        The user is not authorized to perform this operation. Retry the operation again.
      • ERROR_DEVICE_ENVIRONMENT_UNSAFE

        public static final D1Exception.ErrorCode ERROR_DEVICE_ENVIRONMENT_UNSAFE
        The device environment is potentially unsafe. Please ensure that the device environment is safe. Ensure that the device environment is safe.
      • ERROR_NOT_SUPPORTED

        public static final D1Exception.ErrorCode ERROR_NOT_SUPPORTED
        Device does not support this functionality. It could be because of variety of reasons, e.g. enabling SAMSUNG PAY on a non-SAMSUNG device.
      • ERROR_CARD_NOT_FOUND

        public static final D1Exception.ErrorCode ERROR_CARD_NOT_FOUND
        The provided cardID is not found.
      • ERROR_CORE

        public static final D1Exception.ErrorCode ERROR_CORE
        Generic error of CORE module.

        NOTE:
        Integrator should check the underlying errors for more details.

      • ERROR_NO_CARD_ACTIVATION_METHOD

        public static final D1Exception.ErrorCode ERROR_NO_CARD_ACTIVATION_METHOD
      • ERROR_RISK

        public static final D1Exception.ErrorCode ERROR_RISK
        Risk assessment failed.

        NOTE:
        Integrator should check the underlying errors for more details and also ensure that:

        • Risk credentials are correct.
        • The device has Internet connection.

        Category - Risk API

        See Also:
        D1Task.Builder#setRiskURLString(String), D1Task.Builder#setRiskClientID(String)
      • ERROR_CARD

        public static final D1Exception.ErrorCode ERROR_CARD
        Errors encountered whilst executing card operations.

        NOTE:
        Integrator should check the underlying errors for more details. Ensure card configurations are correct and the device has internet connection.

        Category - Card API

      • ERROR_D1PAY

        public static final D1Exception.ErrorCode ERROR_D1PAY
        Errors encountered whilst executing D1 Pay operations.

        NOTE:
        Integrator should check the underlying errors for more details. Ensure d1pay configurations are correct and the device has internet connection.

        Category - D1PAY API

      • ERROR_D1PAY_DIGITIZATION_IN_PROGRESS

        public static final D1Exception.ErrorCode ERROR_D1PAY_DIGITIZATION_IN_PROGRESS
        Digitization is in progress. We cannot allow multiple digitization at the same time. End user must wait for 5 minutes to start another digitization

        NOTE:
        Integrator is suggested to ask End User to simply wait for 5 minutes. 5 minutes value is configurable on D1PayConfigParams.setPollingEndTimeForDigitization(int).

        Category - D1PAY API

      • ERROR_D1PAY_DELETION_IN_PROGRESS

        public static final D1Exception.ErrorCode ERROR_D1PAY_DELETION_IN_PROGRESS
        D1Pay Token Deletion is in progress. This may happen rarely if Digitization stopped in the middle for any reason, for example, End User kill the Application or Application Crash.

        NOTE:
        Integrator is suggested to wait for Push Notification on D1PayDataChangedListener.onDataChanged(String, State) for State.DELETED before Digitization again.

        Category - D1PAY API

    • Method Detail

      • values

        public static D1Exception.ErrorCode[] 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 (D1Exception.ErrorCode c : D1Exception.ErrorCode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static D1Exception.ErrorCode 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 name
        NullPointerException - if the argument is null
      • getCode

        public int getCode()
        Retrieve the code number of this error.
        Returns:
        The code number.
      • getMessage

        public String getMessage()
        Retrieve the underlying error and current error description.
        Returns:
        The error description.
      • getRecoverySuggestion

        public String getRecoverySuggestion()
        Retrieve recovery suggestion for this error.
        Returns:
        The recovery suggestion.