-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
不太建议接口直接throw IOException,用起来很不方便。 #178
Comments
这个问题不大 打个@SneakyThrows就行了. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我这边通过一个模板方式,对IM的所有接口进行了包装,如果方法显性的扔出IOException,代码不太优雅。
我目前是这样写的
然后 TxClientTemplate.call 的代码是这样的
如果显性的有IOException,那我的代码就需要每个都需要 try - catch 了就变成了,感觉很不优雅。
The text was updated successfully, but these errors were encountered: