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

12 lines
254 B
JavaScript
Raw Normal View History

2017-12-10 21:51:33 +01:00
'use strict'
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