public class ZeroDivideException extends Exception {
  private int index = -1;

  public ZeroDivideException(){ };

  public ZeroDivideException(int index) {
    super("Array element ");
    this.index = index;
  }

  public int getIndex() {
    return index;
  }
}
