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

缓存原始方法调用失败的时候 需要抛出原始的错误 #107

Open
carefreebit opened this issue Dec 10, 2024 · 2 comments
Open

Comments

@carefreebit
Copy link

image
因为缓存调用的原始方法错误最后被catch了 抛出的runtimeException导致全局异常捕获时无法对一些异常进行处理

@tanchangtong
Copy link
Contributor

image 因为缓存调用的原始方法错误最后被catch了 抛出的runtimeException导致全局异常捕获时无法对一些异常进行处理

你可以通过这个方式来处理一下runtime异常
17351958776142

@carefreebit
Copy link
Author

对原本的业务异常处理有侵入 感觉如果直接返回原始异常更优雅 只是建议哈 我自己创建的分支已经改了

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

No branches or pull requests

2 participants