fediversity.eu/node_modules/yargs/build/lib/yerror.js
2024-03-26 16:28:28 +01:00

10 lines
234 B
JavaScript

export class YError extends Error {
constructor(msg) {
super(msg || 'yargs error');
this.name = 'YError';
if (Error.captureStackTrace) {
Error.captureStackTrace(this, YError);
}
}
}