@ipp/cli
Version:
An image build orchestrator for the modern web
32 lines (31 loc) • 1.18 kB
JavaScript
;
/**
* Image Processing Pipeline - Copyright (c) Marcus Cemes
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.CliException = exports.CliExceptionCode = void 0;
const common_1 = require("@ipp/common");
var CliExceptionCode;
(function (CliExceptionCode) {
CliExceptionCode["CONFIG_LOAD"] = "CONFIG_LOAD";
CliExceptionCode["CONFIG_PARSE"] = "CONFIG_PARSE";
CliExceptionCode["CLEAN"] = "CLEAN";
CliExceptionCode["ARG_VALIDATION"] = "ARG_VALIDATE";
CliExceptionCode["SEARCH"] = "SEARCH";
CliExceptionCode["MANIFEST"] = "MANIFEST";
CliExceptionCode["SAVE"] = "SAVE";
CliExceptionCode["UNKNOWN"] = "UNKNOWN";
})(CliExceptionCode = exports.CliExceptionCode || (exports.CliExceptionCode = {}));
class CliException extends common_1.Exception {
constructor(message, code, title, comment) {
super(message);
this.code = code;
this.title = title;
this.comment = comment;
this.name = "CliException";
}
}
exports.CliException = CliException;