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