Skip to content

Commit 15d7773

Browse files
committed
完善异常输出
1 parent 8dc2b4d commit 15d7773

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/AbstractWxCpServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ protected synchronized <T, E> T executeInternal(RequestExecutor<T, E> executor,
405405

406406
if (error.getErrorCode() != 0) {
407407
this.log.error("\n【请求地址】: {}\n【请求参数】:{}\n【错误信息】:{}", uriWithAccessToken, data, error);
408-
throw new WxErrorException(error);
408+
throw new WxErrorException(error, e);
409409
}
410410
return null;
411411
} catch (IOException e) {

weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public synchronized <T, E> T executeInternal(RequestExecutor<T, E> executor, Str
213213

214214
if (error.getErrorCode() != 0) {
215215
this.log.error("\n【请求地址】: {}\n【请求参数】:{}\n【错误信息】:{}", uriWithAccessToken, data, error);
216-
throw new WxErrorException(error);
216+
throw new WxErrorException(error, e);
217217
}
218218
return null;
219219
} catch (IOException e) {

weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/AbstractWxMpServiceImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ public synchronized <T, E> T executeInternal(RequestExecutor<T, E> executor, Str
306306

307307
if (error.getErrorCode() != 0) {
308308
this.log.error("\n【请求地址】: {}\n【请求参数】:{}\n【错误信息】:{}", uriWithAccessToken, data, error);
309-
throw new WxErrorException(error);
309+
throw new WxErrorException(error, e);
310310
}
311311
return null;
312312
} catch (IOException e) {
@@ -397,7 +397,7 @@ public WxMpDeviceService getDeviceService() {
397397
}
398398

399399
@Override
400-
public WxMpShakeService getShakeService(){
400+
public WxMpShakeService getShakeService() {
401401
return this.shakeService;
402402
}
403403

0 commit comments

Comments
 (0)