jdk/src/java.base/share/classes/java/lang/IndexOutOfBoundsException.java
changeset 37345 9cb6e1141bdb
parent 32929 7e1bb9268b8a
equal deleted inserted replaced
37344:52d3d8517efc 37345:9cb6e1141bdb
    65      * @since 9
    65      * @since 9
    66      */
    66      */
    67     public IndexOutOfBoundsException(int index) {
    67     public IndexOutOfBoundsException(int index) {
    68         super("Index out of range: " + index);
    68         super("Index out of range: " + index);
    69     }
    69     }
    70 
       
    71     /**
       
    72      * Constructs an {@code IndexOutOfBoundsException} with arguments indicating
       
    73      * 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 IndexOutOfBoundsException(int a, int b) {
       
    84         super("Indexed access out of bounds: " + a + ", " + b);
       
    85     }
       
    86 
       
    87 }
    70 }