@nu-art/commando
Version:
23 lines (22 loc) • 749 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CommandoException = exports.CliError = void 0;
const ts_common_1 = require("@nu-art/ts-common");
class CliError extends ts_common_1.CustomException {
constructor(message, stdout, stderr, cause) {
super(CliError, message, cause);
this.stdout = stdout;
this.stderr = stderr;
this.cause = cause;
}
}
exports.CliError = CliError;
class CommandoException extends ts_common_1.CustomException {
constructor(message, stdout, stderr, exitCode) {
super(CliError, message);
this.stdout = stdout;
this.stderr = stderr;
this.exitCode = exitCode;
}
}
exports.CommandoException = CommandoException;