GT2/GT2-iOS/node_modules/yargs/lib/yerror.js

11 lines
241 B
JavaScript
Raw Normal View History

2018-02-12 17:26:06 +00: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