1 /*2 * @(#)ArithmeticException.java 1.22 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 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 unascribed16 * @version 1.22, 12/19/0317 * @since JDK1.018 */19 public20 class ArithmeticException extends RuntimeException {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 s) {36 super(s);37 }38 }39