UNPKG

z-error

Version:

* verify: 校验字段有效性,合法性。检验不通过返回ZError对象,否则返回null * ZError: 错误提示,继承Error。name表示错误名称,code表示错误码,message表示code对应的提示信息,description错误描述。status表示restful api 状态码 * setLocal:设置多语言错误对照码

49 lines (48 loc) 922 B
{ "name": "z-error", "version": "3.0.1", "keywords": [ "z-error", "Restful", "error code" ], "maintainers": [ "Zz <quitjie@gmail.com>" ], "contributors": [ "Zz (https://github.com/zhonggithub)" ], "bugs": { "url": "https://github.com/zhonggithub" }, "repositories": [ { "type": "git", "url": "git+ssh://git@github.com/zhonggithub/z-error.git" } ], "dependencies": { "lodash": "^4.17.15" }, "repository": { "type": "git", "url": "git+ssh://git@github.com/zhonggithub/z-error.git" }, "homepage": "https://github.com/zhonggithub/z-error#readme", "main": "index.js", "directories": { "lib": "lib", "test": "test" }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", "license": "ISC", "devDependencies": {}, "description": "", "files": [ "index.js", "lib/" ] }