error.js 1.0 KB

123456789101112131415161718192021222324
  1. var __extends = (this && this.__extends) || (function () {
  2. var extendStatics = function (d, b) {
  3. extendStatics = Object.setPrototypeOf ||
  4. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  5. function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
  6. return extendStatics(d, b);
  7. };
  8. return function (d, b) {
  9. if (typeof b !== "function" && b !== null)
  10. throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
  11. extendStatics(d, b);
  12. function __() { this.constructor = d; }
  13. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  14. };
  15. })();
  16. var RediError = /** @class */ (function (_super) {
  17. __extends(RediError, _super);
  18. function RediError(message) {
  19. return _super.call(this, "[redi]: ".concat(message)) || this;
  20. }
  21. return RediError;
  22. }(Error));
  23. export { RediError };
  24. //# sourceMappingURL=error.js.map