a zip code crypto-currency system good for red ONLY

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. "use strict";
  2. var __extends = (this && this.__extends) || (function () {
  3. var extendStatics = Object.setPrototypeOf ||
  4. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  5. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  6. return function (d, b) {
  7. extendStatics(d, b);
  8. function __() { this.constructor = d; }
  9. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  10. };
  11. })();
  12. Object.defineProperty(exports, "__esModule", { value: true });
  13. var BuildError = (function (_super) {
  14. __extends(BuildError, _super);
  15. function BuildError(error) {
  16. var _this = _super.call(this, error instanceof Error ? error.message : error) || this;
  17. _this.hasBeenLogged = false;
  18. _this.isFatal = false;
  19. if (error instanceof Error) {
  20. _this.message = error.message;
  21. _this.stack = error.stack;
  22. _this.name = error.name;
  23. _this.hasBeenLogged = error.hasBeenLogged;
  24. _this.isFatal = error.isFatal;
  25. }
  26. return _this;
  27. }
  28. return BuildError;
  29. }(Error));
  30. exports.BuildError = BuildError;
  31. /* There are special cases where strange things happen where we don't want any logging, etc.
  32. * For our sake, it is much easier to get off the happy path of code and just throw an exception
  33. * and do nothing with it
  34. */
  35. var IgnorableError = (function (_super) {
  36. __extends(IgnorableError, _super);
  37. function IgnorableError(msg) {
  38. return _super.call(this, msg) || this;
  39. }
  40. return IgnorableError;
  41. }(Error));
  42. exports.IgnorableError = IgnorableError;