UNPKG

1.08 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var tslib_1 = require("tslib");
4/**
5 * Thrown when consumer tries to use naming strategy that does not exist.
6 */
7var NamingStrategyNotFoundError = /** @class */ (function (_super) {
8 tslib_1.__extends(NamingStrategyNotFoundError, _super);
9 function NamingStrategyNotFoundError(strategyName, connectionName) {
10 var _this = _super.call(this) || this;
11 _this.name = "NamingStrategyNotFoundError";
12 Object.setPrototypeOf(_this, NamingStrategyNotFoundError.prototype);
13 var name = strategyName instanceof Function ? strategyName.name : strategyName;
14 _this.message = "Naming strategy \"" + name + "\" was not found. Looks like this naming strategy does not " +
15 ("exist or it was not registered in current \"" + connectionName + "\" connection?");
16 return _this;
17 }
18 return NamingStrategyNotFoundError;
19}(Error));
20exports.NamingStrategyNotFoundError = NamingStrategyNotFoundError;
21
22//# sourceMappingURL=NamingStrategyNotFoundError.js.map