jaroslav@475: /* jaroslav@475: * Copyright (c) 1994, 2008, Oracle and/or its affiliates. All rights reserved. jaroslav@475: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. jaroslav@475: * jaroslav@475: * This code is free software; you can redistribute it and/or modify it jaroslav@475: * under the terms of the GNU General Public License version 2 only, as jaroslav@475: * published by the Free Software Foundation. Oracle designates this jaroslav@475: * particular file as subject to the "Classpath" exception as provided jaroslav@475: * by Oracle in the LICENSE file that accompanied this code. jaroslav@475: * jaroslav@475: * This code is distributed in the hope that it will be useful, but WITHOUT jaroslav@475: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or jaroslav@475: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License jaroslav@475: * version 2 for more details (a copy is included in the LICENSE file that jaroslav@475: * accompanied this code). jaroslav@475: * jaroslav@475: * You should have received a copy of the GNU General Public License version jaroslav@475: * 2 along with this work; if not, write to the Free Software Foundation, jaroslav@475: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. jaroslav@475: * jaroslav@475: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA jaroslav@475: * or visit www.oracle.com if you need additional information or have any jaroslav@475: * questions. jaroslav@475: */ jaroslav@475: jaroslav@475: package java.lang; jaroslav@475: jaroslav@475: /** jaroslav@475: * Thrown if an application tries to create an array with negative size. jaroslav@475: * jaroslav@475: * @author unascribed jaroslav@475: * @since JDK1.0 jaroslav@475: */ jaroslav@475: public jaroslav@475: class NegativeArraySizeException extends RuntimeException { jaroslav@475: private static final long serialVersionUID = -8960118058596991861L; jaroslav@475: jaroslav@475: /** jaroslav@475: * Constructs a NegativeArraySizeException with no jaroslav@475: * detail message. jaroslav@475: */ jaroslav@475: public NegativeArraySizeException() { jaroslav@475: super(); jaroslav@475: } jaroslav@475: jaroslav@475: /** jaroslav@475: * Constructs a NegativeArraySizeException with the jaroslav@475: * specified detail message. jaroslav@475: * jaroslav@475: * @param s the detail message. jaroslav@475: */ jaroslav@475: public NegativeArraySizeException(String s) { jaroslav@475: super(s); jaroslav@475: } jaroslav@475: }