@forge/cli-shared

9.10.0-next.89.10.0-next.9
out/shared/error-handling.js
~out/shared/error-handling.jsModified
+12−1
Index: package/out/shared/error-handling.js
===================================================================
--- package/out/shared/error-handling.js
+++ package/out/shared/error-handling.js
@@ -1,7 +1,7 @@
 "use strict";
 Object.defineProperty(exports, "__esModule", { value: true });
-exports.MissingCreatorError = exports.PartialInstallationError = exports.UIPromptError = exports.ApplicationCompileError = exports.BundlerTSError = exports.ValidationError = exports.assertIsError = exports.wrapError = exports.exitOnError = exports.HiddenError = exports.UserError = exports.BaseError = void 0;
+exports.MissingCreatorError = exports.PartialInstallationError = exports.UIPromptError = exports.ApplicationCompileError = exports.BundlerTSError = exports.MissingInputError = exports.MISSING_INPUT_CODE = exports.ValidationError = exports.assertIsError = exports.wrapError = exports.exitOnError = exports.HiddenError = exports.UserError = exports.BaseError = void 0;
 exports.isUserError = isUserError;
 exports.getErrorAttributes = getErrorAttributes;
 exports.transformErrorMessage = transformErrorMessage;
 const tslib_1 = require("tslib");
@@ -139,8 +139,19 @@
 exports.assertIsError = assertIsError;
 class ValidationError extends UserError {
 }
 exports.ValidationError = ValidationError;
+exports.MISSING_INPUT_CODE = 'MISSING_INPUT';
+class MissingInputError extends ValidationError {
+    code = exports.MISSING_INPUT_CODE;
+    constructor(message, requestId) {
+        super(`[${exports.MISSING_INPUT_CODE}] ${message ?? ''}`.trim(), requestId);
+    }
+    getAttributes() {
+        return { ...super.getAttributes(), code: this.code };
+    }
+}
+exports.MissingInputError = MissingInputError;
 class BundlerTSError extends UserError {
 }
 exports.BundlerTSError = BundlerTSError;
 class ApplicationCompileError extends UserError {