Selaa lähdekoodia

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

master
Binary Wang 8 vuotta sitten
vanhempi
commit
392429a476
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. +5
    -0
      weixin-java-common/src/main/java/me/chanjar/weixin/common/exception/WxErrorException.java

+ 5
- 0
weixin-java-common/src/main/java/me/chanjar/weixin/common/exception/WxErrorException.java Näytä tiedosto

@@ -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;
}


Ladataan…
Peruuta
Tallenna