UNPKG

403 BJavaScriptView Raw
1/**
2 * A CLI error. Useful for anticipated CLI errors (such as invalid CLI
3 * arguments) that don’t need to be displayed with a stack trace, vs unexpected
4 * internal errors.
5 * @kind class
6 * @name CliError
7 * @param {string} message Error message.
8 * @ignore
9 */
10export default class CliError extends Error {
11 constructor(...args) {
12 super(...args);
13 this.name = this.constructor.name;
14 }
15}