summaryrefslogblamecommitdiff
path: root/node_modules/yargs/build/lib/yerror.js
blob: 7a36684da8dbfb687f8d8dacfd69fbd8e1dab931 (plain) (tree)
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);
        }
    }
}