mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-08-24 07:23:01 +08:00
为WxErrorException添加一个构造方法,用于必要时打印出错误根源信息
This commit is contained in:
parent
f2655e5eed
commit
392429a476
@ -13,6 +13,11 @@ public class WxErrorException extends Exception {
|
|||||||
this.error = error;
|
this.error = error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public WxErrorException(WxError error, Throwable cause) {
|
||||||
|
super(error.toString(), cause);
|
||||||
|
this.error = error;
|
||||||
|
}
|
||||||
|
|
||||||
public WxError getError() {
|
public WxError getError() {
|
||||||
return this.error;
|
return this.error;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user