ReedSolomonException.js 1.0 KB

123456789101112131415161718192021222324252627
  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 (b.hasOwnProperty(p)) d[p] = b[p]; };
  6. return extendStatics(d, b);
  7. };
  8. return function (d, b) {
  9. extendStatics(d, b);
  10. function __() { this.constructor = d; }
  11. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  12. };
  13. })();
  14. import Exception from './Exception';
  15. /**
  16. * Custom Error class of type Exception.
  17. */
  18. var ReedSolomonException = /** @class */ (function (_super) {
  19. __extends(ReedSolomonException, _super);
  20. function ReedSolomonException() {
  21. return _super !== null && _super.apply(this, arguments) || this;
  22. }
  23. ReedSolomonException.kind = 'ReedSolomonException';
  24. return ReedSolomonException;
  25. }(Exception));
  26. export default ReedSolomonException;