wallet-core/node_modules/yargs/lib/yerror.js

11 lines
241 B
JavaScript
Raw Normal View History

2017-08-14 05:01:11 +02:00
function YError (msg) {
this.name = 'YError'
this.message = msg || 'yargs error'
Error.captureStackTrace(this, YError)
}
YError.prototype = Object.create(Error.prototype)
YError.prototype.constructor = YError
module.exports = YError