Parcourir la source

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

master
Binary Wang il y a 8 ans
Parent
révision
392429a476
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  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 Voir le fichier

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


Chargement…
Annuler
Enregistrer