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

ILogRecordService接口不能向外抛出异常吗? #42

Open
SeeTomorrow opened this issue Nov 12, 2021 · 3 comments
Open

ILogRecordService接口不能向外抛出异常吗? #42

SeeTomorrow opened this issue Nov 12, 2021 · 3 comments
Labels
good first issue Good for newcomers

Comments

@SeeTomorrow
Copy link

如题,自定义ILogRecordService实现类无法向外抛出异常

@SeeTomorrow
Copy link
Author

自定义了dbLogRecordService,保存到库里时,catch异常后想主动抛出到全局异常处理类,想知道用作者大大现在的架构能实现吗

@miaoyinjun
Copy link

miaoyinjun commented Nov 12, 2021

请参考:https://github.com/miaoyinjun/boot-admin 的LogRecordInterceptor.java里,这里可以抛出到全局异常里

@mouzt
Copy link
Owner

mouzt commented Nov 15, 2021

考虑操作日志出错不影响业务的主流程,所以没有向外部抛出异常。这块后面会放开给业务

@mouzt mouzt added the good first issue Good for newcomers label Dec 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants