equal
deleted
inserted
replaced
62 * @param index the illegal index. |
62 * @param index the illegal index. |
63 */ |
63 */ |
64 public ArrayIndexOutOfBoundsException(int index) { |
64 public ArrayIndexOutOfBoundsException(int index) { |
65 super("Array index out of range: " + index); |
65 super("Array index out of range: " + index); |
66 } |
66 } |
67 |
|
68 /** |
|
69 * Constructs a new {@code ArrayIndexOutOfBoundsException} class with |
|
70 * arguments indicating two out of bound values. |
|
71 * |
|
72 * <p>The out of bound values are included in this exception's detail |
|
73 * message. The exact presentation format of the detail message is |
|
74 * unspecified. |
|
75 * |
|
76 * @param a the first out of bound value. |
|
77 * @param b the second out of bound value. |
|
78 * @since 9 |
|
79 */ |
|
80 public ArrayIndexOutOfBoundsException(int a, int b) { |
|
81 super("Array indexed access out of bounds: " + a + ", " + b); |
|
82 } |
|
83 } |
67 } |