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

关于轻量级AOP框架实现的一个疑问 #34

Open
binglinwen opened this issue Sep 11, 2020 · 1 comment
Open

关于轻量级AOP框架实现的一个疑问 #34

binglinwen opened this issue Sep 11, 2020 · 1 comment

Comments

@binglinwen
Copy link

你好!请教一个问题,当前的设计似乎不包括下述这个情况:
当切面代码在逻辑上运行失败,需要退出,不需要执行核心代码时的处理,像这个情况,当前的实现似乎只能在切面代码中抛出异常!

@qicosmos
Copy link
Owner

qicosmos commented Sep 11, 2020

可以看看cinatra中的AOP是怎么用的,当切面返回false时,就不会再往后面执行了。代码和这里的可能稍有修改。

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