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

Error 类的建立与处理 #46

Open
zccz14 opened this issue Dec 29, 2016 · 1 comment
Open

Error 类的建立与处理 #46

zccz14 opened this issue Dec 29, 2016 · 1 comment
Labels

Comments

@zccz14
Copy link
Member

zccz14 commented Dec 29, 2016

重构 Error 处理,消除 lib 中这样的代码:

res.json({code: 11, msg: 'dwdwdw'})

改成

throw new UnavailableError('dwdwdw');

这样的代码

需要设计错误类

@zccz14 zccz14 added the Epic label Dec 29, 2016
@liruixl
Copy link

liruixl commented Mar 14, 2017

Follow you.

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

No branches or pull requests

2 participants