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

exchange.apexpro.connector.exception.ApexProApiException Maven / Gradle / Ivy

There is a newer version: 2.0.2
Show newest version
package exchange.apexpro.connector.exception;

public class ApexProApiException extends RuntimeException {

    private static final long serialVersionUID = 3360118982268949324L;
    public static final String RUNTIME_ERROR = "RuntimeError";
    public static final String INPUT_ERROR = "InputError";
    public static final String KEY_MISSING = "KeyMissing";
    public static final String SYS_ERROR = "SysError";
    public static final String SUBSCRIPTION_ERROR = "SubscriptionError";
    public static final String ENV_ERROR = "EnvironmentError";
    public static final String EXEC_ERROR = "ExecuteError";
    private final String errCode;

    public ApexProApiException(String errType, String errMsg) {
        super(errMsg);
        this.errCode = errType;
    }

    public ApexProApiException(String errType, String errMsg, Throwable e) {
        super(errMsg, e);
        this.errCode = errType;
    }

    public String getErrType() {
        return this.errCode;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy