emul/src/main/java/java/lang/NegativeArraySizeException.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Fri, 18 Jan 2013 12:07:11 +0100
branchjdk7-b147
changeset 475 1a61b103ac45
permissions -rw-r--r--
Will replace direct manipulation with arrays with calls to java.lang.reflect.Array
jaroslav@475
     1
/*
jaroslav@475
     2
 * Copyright (c) 1994, 2008, Oracle and/or its affiliates. All rights reserved.
jaroslav@475
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
jaroslav@475
     4
 *
jaroslav@475
     5
 * This code is free software; you can redistribute it and/or modify it
jaroslav@475
     6
 * under the terms of the GNU General Public License version 2 only, as
jaroslav@475
     7
 * published by the Free Software Foundation.  Oracle designates this
jaroslav@475
     8
 * particular file as subject to the "Classpath" exception as provided
jaroslav@475
     9
 * by Oracle in the LICENSE file that accompanied this code.
jaroslav@475
    10
 *
jaroslav@475
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
jaroslav@475
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
jaroslav@475
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
jaroslav@475
    14
 * version 2 for more details (a copy is included in the LICENSE file that
jaroslav@475
    15
 * accompanied this code).
jaroslav@475
    16
 *
jaroslav@475
    17
 * You should have received a copy of the GNU General Public License version
jaroslav@475
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
jaroslav@475
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
jaroslav@475
    20
 *
jaroslav@475
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
jaroslav@475
    22
 * or visit www.oracle.com if you need additional information or have any
jaroslav@475
    23
 * questions.
jaroslav@475
    24
 */
jaroslav@475
    25
jaroslav@475
    26
package java.lang;
jaroslav@475
    27
jaroslav@475
    28
/**
jaroslav@475
    29
 * Thrown if an application tries to create an array with negative size.
jaroslav@475
    30
 *
jaroslav@475
    31
 * @author  unascribed
jaroslav@475
    32
 * @since   JDK1.0
jaroslav@475
    33
 */
jaroslav@475
    34
public
jaroslav@475
    35
class NegativeArraySizeException extends RuntimeException {
jaroslav@475
    36
    private static final long serialVersionUID = -8960118058596991861L;
jaroslav@475
    37
jaroslav@475
    38
    /**
jaroslav@475
    39
     * Constructs a <code>NegativeArraySizeException</code> with no
jaroslav@475
    40
     * detail message.
jaroslav@475
    41
     */
jaroslav@475
    42
    public NegativeArraySizeException() {
jaroslav@475
    43
        super();
jaroslav@475
    44
    }
jaroslav@475
    45
jaroslav@475
    46
    /**
jaroslav@475
    47
     * Constructs a <code>NegativeArraySizeException</code> with the
jaroslav@475
    48
     * specified detail message.
jaroslav@475
    49
     *
jaroslav@475
    50
     * @param   s   the detail message.
jaroslav@475
    51
     */
jaroslav@475
    52
    public NegativeArraySizeException(String s) {
jaroslav@475
    53
        super(s);
jaroslav@475
    54
    }
jaroslav@475
    55
}