Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

异常包装 #1482

Closed
yuexiang1988 opened this issue Apr 1, 2020 · 2 comments
Closed

异常包装 #1482

yuexiang1988 opened this issue Apr 1, 2020 · 2 comments

Comments

@yuexiang1988
Copy link

WxMaServiceImpl#execute方法内捕获executeInternal方法抛出的WxErrorException异常,然后抛出RuntimeException("微信服务端异常,超出重试次数"),这样拿不到调用微信返回的错误码。业务有需要根据微信返回码做逻辑处理的。可以把返回码暴露给外层吗

@binarywang
Copy link
Member

服务器端异常返回码就是-1,你看代码就可以知道了。
不过也可以考虑把微信的原始返回通过WxErrorException的形式抛出来。

@binarywang
Copy link
Member

3.7.5.B 测试版本已优化

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants