cn.jsbintask.wxpay.WxPayException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wxpay-sdk Show documentation
Show all versions of wxpay-sdk Show documentation
wxpay-sdk is a tool for WX pay.
The newest version!
package cn.jsbintask.wxpay;
import cn.jsbintask.wxpay.response.WxPayResponse;
/**
* @author [email protected]
* @date 2019/9/6 10:42
*/
public class WxPayException extends RuntimeException {
private static final long serialVersionUID = -238091758285157331L;
private String returnCode;
private String returnMsg;
private String resultCode;
private String errCode;
private String errCodeDes;
public WxPayException() {
super();
}
public WxPayException(String message, Throwable cause) {
super(message, cause);
}
public WxPayException(String message) {
super(message);
}
public WxPayException(Throwable cause) {
super(cause);
}
public WxPayException(String returnCode, String returnMsg) {
super(returnCode + ":" + returnMsg);
this.returnCode = returnCode;
this.returnMsg = returnMsg;
}
public WxPayException(WxPayResponse response) {
this.returnCode = response.getReturnMsg();
this.returnMsg = response.getReturnMsg();
this.resultCode = response.getResultCode();
this.errCode = response.getErrCode();
this.errCodeDes = response.getErrCodeDes();
}
public String getReturnCode() {
return this.returnCode;
}
public String getReturnMsg() {
return this.returnMsg;
}
}