KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > lang > NegativeArraySizeException


1 /*
2  * @(#)NegativeArraySizeException.java 1.19 03/12/19
3  *
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 unascribed
14  * @version 1.19, 12/19/03
15  * @since JDK1.0
16  */

17 public
18 class NegativeArraySizeException extends RuntimeException JavaDoc {
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 JavaDoc s) {
34     super(s);
35     }
36 }
37
Popular Tags