ArrayIndexOutOfBoundsException.js 1.3 KB

1234567891011121314151617181920212223242526272829303132
  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 IndexOutOfBoundsException from './IndexOutOfBoundsException';
  15. /**
  16. * Custom Error class of type Exception.
  17. */
  18. var ArrayIndexOutOfBoundsException = /** @class */ (function (_super) {
  19. __extends(ArrayIndexOutOfBoundsException, _super);
  20. function ArrayIndexOutOfBoundsException(index, message) {
  21. if (index === void 0) { index = undefined; }
  22. if (message === void 0) { message = undefined; }
  23. var _this = _super.call(this, message) || this;
  24. _this.index = index;
  25. _this.message = message;
  26. return _this;
  27. }
  28. ArrayIndexOutOfBoundsException.kind = 'ArrayIndexOutOfBoundsException';
  29. return ArrayIndexOutOfBoundsException;
  30. }(IndexOutOfBoundsException));
  31. export default ArrayIndexOutOfBoundsException;