KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > lang > ArithmeticException


1 /*
2  * @(#)ArithmeticException.java 1.22 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 when an exceptional arithmetic condition has occurred. For
12  * example, an integer "divide by zero" throws an
13  * instance of this class.
14  *
15  * @author unascribed
16  * @version 1.22, 12/19/03
17  * @since JDK1.0
18  */

19 public
20 class ArithmeticException extends RuntimeException JavaDoc {
21     /**
22      * Constructs an <code>ArithmeticException</code> with no detail
23      * message.
24      */

25     public ArithmeticException() {
26     super();
27     }
28
29     /**
30      * Constructs an <code>ArithmeticException</code> with the specified
31      * detail message.
32      *
33      * @param s the detail message.
34      */

35     public ArithmeticException(String JavaDoc s) {
36     super(s);
37     }
38 }
39
Popular Tags