zxing-js/library

View on GitHub
src/core/ArrayIndexOutOfBoundsException.ts

Summary

Maintainability
A
0 mins
Test Coverage
F
57%
import IndexOutOfBoundsException from './IndexOutOfBoundsException';

/**
 * Custom Error class of type Exception.
 */
export default class ArrayIndexOutOfBoundsException extends IndexOutOfBoundsException {
  static readonly kind: string = 'ArrayIndexOutOfBoundsException';
  constructor(
    public index: number = undefined,
    public message: string = undefined
  ) {
    super(message);
  }
}