management/front/dkha-web-sz-main/node_modules/yargs/lib/yerror.js

12 lines
254 B
JavaScript
Raw Normal View History

2023-12-28 23:41:32 +08:00
'use strict'
2023-12-18 13:12:25 +08: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