@4a/share-error 中文文档教程
ShareError
可以携带err-code的Error对象
Install
npm i @4a/share-error
Usage
const ShareError = require('@4a/share-error')
throw new ShareError(100, 'error code is 100')
throw new ShareError(200, 'error code is 200')
throw new ShareError(300, 'error code is 300')
更多
你可能也喜欢
- 9cats 中文文档教程
- @1onlinesolution/dws-core 中文文档教程
- @1onlinesolution/dws-mail 中文文档教程
- @4-us-4-others/are.na 中文文档教程
- @a11ycore/reporter 中文文档教程
- @a8k/babel-preset 中文文档教程
- @aapokiiso/hsl-congestion-utils 中文文档教程
- @abide-community/parcel-plugin-clean-out-dir 中文文档教程
- @aboll/utils 中文文档教程
- @acciosolutions/webpack-awesome-i18n-plugin 中文文档教程