ERROR_MESSAGE

package com.suneee.common;

/**
* TODO: 错误信息包装类
*
* @author pengming
* @date 2014-12-12
* @version 1.0.0
* @copyright suneee.com
*/
public class ResultMsg implements java.io.Serializable {

/**
*
*/
private static final long serialVersionUID = 1L;
private boolean flag; // 成功标识
private String reCode; // 返回代码
private String idCode; // 结果ID
private String reMsg; // 返回信息
private Object reObj; // 返回实体

public ResultMsg() {

}

public ResultMsg(boolean flag, String reCode, String idCode, String reMsg, Object reObj) {
this.flag = flag;
this.reCode = reCode;
this.idCode = idCode;
this.reMsg = reMsg;
this.reObj = reObj;
}

public ResultMsg(boolean flag, String reCode, String reMsg) {
this.flag = flag;
this.reCode = reCode;
this.reMsg = reMsg;
}

public ResultMsg(boolean flag, String[] message) {
this.flag = flag;
this.reCode = message[0];
this.reMsg = message[1];
}

public ResultMsg(boolean flag, String reCode, String reMsg, Object reObj) {
this.flag = flag;
this.reCode = reCode;
this.reMsg = reMsg;
this.reObj = reObj;
}

public String getReCode() {
return reCode;
}

public void setReCode(String reCode) {
this.reCode = reCode;
}

public String getReMsg() {
return reMsg;
}

public void setReMsg(String reMsg) {
this.reMsg = reMsg;
}

public Object getReObj() {
return reObj;
}

public void setReObj(Object reObj) {
this.reObj = reObj;
}

public boolean isFlag() {
return flag;
}

public void setFlag(boolean flag) {
this.flag = flag;
}

public String getIdCode() {
return idCode;
}

public void setIdCode(String idCode) {
this.idCode = idCode;
}

}

你可能感兴趣的:(message)