exchange.apexpro.connector.exception.ApexProApiException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apexpro-connector-java Show documentation
Show all versions of apexpro-connector-java Show documentation
A lightweight library to ApeX-Protocol
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;
}
}