com.riversoft.weixin.common.exception.WxError Maven / Gradle / Ivy
The newest version!
package com.riversoft.weixin.common.exception;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.riversoft.weixin.common.util.JsonMapper;
import java.io.Serializable;
/**
* Created by exizhai on 9/26/2015.
*/
public class WxError implements Serializable {
@JsonProperty("errcode")
private int errorCode;
@JsonProperty("errmsg")
private String errorMsg;
private String json;
public static WxError fromJson(String json) {
WxError wxError = JsonMapper.defaultMapper().fromJson(json, WxError.class);
wxError.setJson(json);
return wxError;
}
public int getErrorCode() {
return errorCode;
}
public void setErrorCode(int errorCode) {
this.errorCode = errorCode;
}
public String getErrorMsg() {
return errorMsg;
}
public void setErrorMsg(String errorMsg) {
this.errorMsg = errorMsg;
}
public String getJson() {
return json;
}
public void setJson(String json) {
this.json = json;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy