ArrayIndexOutOfBoundsException.js 428 B

12345678910111213
  1. import IndexOutOfBoundsException from './IndexOutOfBoundsException';
  2. /**
  3. * Custom Error class of type Exception.
  4. */
  5. export default class ArrayIndexOutOfBoundsException extends IndexOutOfBoundsException {
  6. constructor(index = undefined, message = undefined) {
  7. super(message);
  8. this.index = index;
  9. this.message = message;
  10. }
  11. }
  12. ArrayIndexOutOfBoundsException.kind = 'ArrayIndexOutOfBoundsException';