amk.sdk.deeplink.exception.DeeplinkException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java Show documentation
Show all versions of java Show documentation
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.
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