ezerrors
v1.0.1
Published
Easily generate custom Error classes
Downloads
3
Readme
ezerrors
Easily generate custom Error classes
const { CustomError, OtherError } = require('ezerrors')
const myError = new CustomError('Something went wrong!')
const myOtherError = new OtherError('Another error')
myError instanceof require('ezerrors').CustomError // true
myError instanceof myOtherError // false