Skip to content

gavinning/ShareError

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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')

Releases

No releases published

Packages

No packages published