Quellcode durchsuchen

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

master
Binary Wang vor 8 Jahren
Ursprung
Commit
392429a476
1 geänderte Dateien mit 5 neuen und 0 gelöschten Zeilen
  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 Datei anzeigen

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


Laden…
Abbrechen
Speichern