All Downloads are FREE. Search and download functionalities are using the official Maven repository.

amk.sdk.deeplink.exception.DeeplinkException Maven / Gradle / Ivy

Go to download

The AMK Deeplink SDK is a library for AMK's merchant that allow them to be able generate deeplink for their user to pay via AMK Bank app.

There is a newer version: 1.1.0
Show newest version
package amk.sdk.deeplink.exception;

import amk.sdk.deeplink.entity.model.AMKDLErrorCode;

public class DeeplinkException extends java.lang.Exception {

    private int errorCode;

    public DeeplinkException(int errorCode){
        super(AMKDLErrorCode.errorCodeMap.get(errorCode));
        this.errorCode = errorCode;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public static void throwCustomerException(int errorCode) throws DeeplinkException {
        throw new DeeplinkException(errorCode);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy