yerror.js 234 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 export class YError extends Error { constructor(msg) { super(msg || 'yargs error'); this.name = 'YError'; if (Error.captureStackTrace) { Error.captureStackTrace(this, YError); } } }