@hive/error
error类, 没有继承于Error类, 便于log和统一调试
Last updated 7 years ago by purple .
ISC · · Tarball
$ npm install @hive/error  --registry=http://registry.npm.fe.eucita.com 
Private package

@hive/error

error类, 没有继承于Error类, 便于log和统一调试

Syntax

const ERR=require('@hive/error');

var err=new ERR(ERR[type],detail)

Constructor

new ERR( ERR[type], String detail )

#### Parameters
* ERR[type]
    > type目前有TIMEOUT,NOUSER,NOTFOUND,SERVERERROR,OTHER

* detail
    > String : 错误详细描述

#### Properties of Constructor
* ERR.TIMEOUT = 'timeout';
* ERR.NOUSER = 'no user';
* ERR.NOTFOUND = 'not found';
* ERR.SERVERERROR = 'server error';
* ERR.OTHER = 'other';
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 0
Last Month 3
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (2)

Eucita FE Team | Home | README