UNPKG

544 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.NowBuildError = void 0;
4/**
5 * This error should be thrown from a Builder in
6 * order to stop the build and print a message.
7 * This is necessary to avoid printing a stack trace.
8 */
9class NowBuildError extends Error {
10 constructor({ message, code, link, action }) {
11 super(message);
12 this.hideStackTrace = true;
13 this.code = code;
14 this.link = link;
15 this.action = action;
16 }
17}
18exports.NowBuildError = NowBuildError;