1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.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 | */
|
9 | class 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 | }
|
18 | exports.NowBuildError = NowBuildError;
|