完善异常输出

This commit is contained in:
Binary Wang 2017-07-06 15:21:42 +08:00
parent 8dc2b4d0af
commit 15d7773f8a
3 changed files with 4 additions and 4 deletions

View File

@ -405,7 +405,7 @@ public abstract class AbstractWxCpServiceImpl<H, P> implements WxCpService, Requ
if (error.getErrorCode() != 0) {
this.log.error("\n【请求地址】: {}\n【请求参数】{}\n【错误信息】{}", uriWithAccessToken, data, error);
throw new WxErrorException(error);
throw new WxErrorException(error, e);
}
return null;
} catch (IOException e) {

View File

@ -213,7 +213,7 @@ public class WxMaServiceImpl implements WxMaService, RequestHttp<CloseableHttpCl
if (error.getErrorCode() != 0) {
this.log.error("\n【请求地址】: {}\n【请求参数】{}\n【错误信息】{}", uriWithAccessToken, data, error);
throw new WxErrorException(error);
throw new WxErrorException(error, e);
}
return null;
} catch (IOException e) {

View File

@ -306,7 +306,7 @@ public abstract class AbstractWxMpServiceImpl<H, P> implements WxMpService, Requ
if (error.getErrorCode() != 0) {
this.log.error("\n【请求地址】: {}\n【请求参数】{}\n【错误信息】{}", uriWithAccessToken, data, error);
throw new WxErrorException(error);
throw new WxErrorException(error, e);
}
return null;
} catch (IOException e) {
@ -397,7 +397,7 @@ public abstract class AbstractWxMpServiceImpl<H, P> implements WxMpService, Requ
}
@Override
public WxMpShakeService getShakeService(){
public WxMpShakeService getShakeService() {
return this.shakeService;
}