为WxErrorException添加一个构造方法,用于必要时打印出错误根源信息

This commit is contained in:
Binary Wang 2016-10-04 23:43:54 +08:00
parent f2655e5eed
commit 392429a476

View File

@ -13,6 +13,11 @@ public class WxErrorException extends Exception {
this.error = error;
}
public WxErrorException(WxError error, Throwable cause) {
super(error.toString(), cause);
this.error = error;
}
public WxError getError() {
return this.error;
}