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

XXXExceptionAssertion能否抽离成一个统一的接口 #5

Open
complicatedxin opened this issue Apr 11, 2022 · 0 comments
Open

XXXExceptionAssertion能否抽离成一个统一的接口 #5

complicatedxin opened this issue Apr 11, 2022 · 0 comments

Comments

@complicatedxin
Copy link

XXXExceptionAssertion 有必要每个类型都写一个么,都是实现GenericExceptionResponseEnum, Assertion,重写两个BaseException newException()。
为何不定义一个ExceptionAssertion,让responseEnum去实现它,这样只用写Enum与对应要抛出的exception就行了。

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

1 participant