com.founder.ecrx.exception.ServerException Maven / Gradle / Ivy
package com.founder.ecrx.exception;
public class ServerException extends RuntimeException {
private int code;
private String msg;
public ServerException(FuncRetCode funcRetCode) {
super(funcRetCode.getMessage());
this.code = funcRetCode.value();
this.msg = funcRetCode.getMessage();
}
public ServerException(int code, String msg) {
super(msg);
this.code = code;
this.msg = msg;
}
public int getCode() {
return this.code;
}
public String getMsg() {
return this.msg;
}
}