1 /*2 * @(#)NegativeArraySizeException.java 1.19 03/12/193 *4 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.5 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.6 */7 8 package java.lang;9 10 /**11 * Thrown if an application tries to create an array with negative size.12 *13 * @author unascribed14 * @version 1.19, 12/19/0315 * @since JDK1.016 */17 public18 class NegativeArraySizeException extends RuntimeException {19 /**20 * Constructs a <code>NegativeArraySizeException</code> with no 21 * detail message. 22 */23 public NegativeArraySizeException() {24 super();25 }26 27 /**28 * Constructs a <code>NegativeArraySizeException</code> with the 29 * specified detail message. 30 *31 * @param s the detail message.32 */33 public NegativeArraySizeException(String s) {34 super(s);35 }36 }37