UNPKG

961 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var tslib_1 = require("tslib");
4/**
5 */
6var MetadataWithSuchNameAlreadyExistsError = /** @class */ (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));
18exports.MetadataWithSuchNameAlreadyExistsError = MetadataWithSuchNameAlreadyExistsError;
19
20//# sourceMappingURL=MetadataWithSuchNameAlreadyExistsError.js.map