1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | var tslib_1 = require("tslib");
|
4 |
|
5 |
|
6 | var MetadataWithSuchNameAlreadyExistsError = (function (_super) {
|
7 | tslib_1.__extends(MetadataWithSuchNameAlreadyExistsError, _super);
|
8 | function MetadataWithSuchNameAlreadyExistsError(metadataType, name) {
|
9 | var _this = _super.call(this) || this;
|
10 | _this.name = "MetadataWithSuchNameAlreadyExistsError";
|
11 | Object.setPrototypeOf(_this, MetadataWithSuchNameAlreadyExistsError.prototype);
|
12 | _this.message = metadataType + " metadata with such name " + name + " already exists. " +
|
13 | "Do you apply decorator twice? Or maybe try to change a name?";
|
14 | return _this;
|
15 | }
|
16 | return MetadataWithSuchNameAlreadyExistsError;
|
17 | }(Error));
|
18 | exports.MetadataWithSuchNameAlreadyExistsError = MetadataWithSuchNameAlreadyExistsError;
|
19 |
|
20 |
|