This commit is contained in:
2026-02-13 23:49:12 +01:00
parent 206b8f08db
commit 2e02d6d763
36 changed files with 1816 additions and 4178 deletions

View File

@@ -1,6 +1,5 @@
/**
* CommanderError class
* @class
*/
class CommanderError extends Error {
/**
@@ -8,7 +7,6 @@ class CommanderError extends Error {
* @param {number} exitCode suggested exit code which could be used with process.exit
* @param {string} code an id string representing the error
* @param {string} message human-readable description of the error
* @constructor
*/
constructor(exitCode, code, message) {
super(message);
@@ -23,13 +21,11 @@ class CommanderError extends Error {
/**
* InvalidArgumentError class
* @class
*/
class InvalidArgumentError extends CommanderError {
/**
* Constructs the InvalidArgumentError class
* @param {string} [message] explanation of why argument is invalid
* @constructor
*/
constructor(message) {
super(1, 'commander.invalidArgument', message);