1 | "use strict";
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.default = void 0;
|
7 |
|
8 | class Warning extends Error {
|
9 | constructor(warning) {
|
10 | super(warning);
|
11 | const {
|
12 | text,
|
13 | line,
|
14 | column
|
15 | } = warning;
|
16 | this.name = "Warning";
|
17 |
|
18 |
|
19 | this.message = `${this.name}\n\n`;
|
20 |
|
21 | if (typeof line !== "undefined") {
|
22 | this.message += `(${line}:${column}) `;
|
23 | }
|
24 |
|
25 | this.message += `${text}`;
|
26 |
|
27 | this.stack = false;
|
28 | }
|
29 |
|
30 | }
|
31 |
|
32 | exports.default = Warning; |
\ | No newline at end of file |