All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hn.utils.weixin.exception.WxException Maven / Gradle / Ivy

There is a newer version: 1.0.18
Show newest version
package com.hn.utils.weixin.exception;

/**
 * 描述: 微信异常
 * @author fei
 */
public class WxException extends RuntimeException {

    private Integer errCode;

    public WxException() {
    }

    public WxException(String message) {
        super(message);
    }

    public WxException(String message, Throwable cause) {
        super(message, cause);
    }

    /**
     *  构造异常对象
     * @param errCode 错误码
     * @param message 错误消息
     * @return WxException
     */
    public static WxException exception(Integer errCode,String message){
        WxException wxException = new WxException(message);
        wxException.setErrCode(errCode);
        return wxException;
    }

    public Integer getErrCode() {
        return errCode;
    }

    public void setErrCode(Integer errCode) {
        this.errCode = errCode;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy