2e 中文文档教程
two-types and chain errors for user and bug in node
var e2 = require('2e'), UserError = e2.UserError, BugError = e2.BugError;
throw new UserError('xxx');
throw new UserError(400, 'xxx');
throw new UserError(err, 'xxx');//caused by another error `err`
throw new UserError(err, 400, 'xxx');
License :
根据麻省理工学院
版权 (c) 2015 kiliwalk 获得许可
two-types and chain errors for user and bug in node
var e2 = require('2e'), UserError = e2.UserError, BugError = e2.BugError;
throw new UserError('xxx');
throw new UserError(400, 'xxx');
throw new UserError(err, 'xxx');//caused by another error `err`
throw new UserError(err, 400, 'xxx');
License :
Licensed under MIT
Copyright (c) 2015 kiliwalk
更多
你可能也喜欢
- 2d-solver 中文文档教程
- 42norminette 中文文档教程
- 5rolli-time-summarizer 中文文档教程
- 7-figure-cycle-review 中文文档教程
- @0x/contracts-exchange-libs 中文文档教程
- @3wks/generator-gae-node-nestjs 中文文档教程
- @4geit/rct-side-menu-component 中文文档教程
- @a-a-game-studio/aa-image-manipolatore 中文文档教程
- @aansi/spool 中文文档教程
- @achingbrain/react-validation 中文文档教程