jaroslav@1030: /* jaroslav@1030: * Copyright (c) 1994, 2011, Oracle and/or its affiliates. All rights reserved. jaroslav@1030: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. jaroslav@1030: * jaroslav@1030: * This code is free software; you can redistribute it and/or modify it jaroslav@1030: * under the terms of the GNU General Public License version 2 only, as jaroslav@1030: * published by the Free Software Foundation. Oracle designates this jaroslav@1030: * particular file as subject to the "Classpath" exception as provided jaroslav@1030: * by Oracle in the LICENSE file that accompanied this code. jaroslav@1030: * jaroslav@1030: * This code is distributed in the hope that it will be useful, but WITHOUT jaroslav@1030: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or jaroslav@1030: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License jaroslav@1030: * version 2 for more details (a copy is included in the LICENSE file that jaroslav@1030: * accompanied this code). jaroslav@1030: * jaroslav@1030: * You should have received a copy of the GNU General Public License version jaroslav@1030: * 2 along with this work; if not, write to the Free Software Foundation, jaroslav@1030: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. jaroslav@1030: * jaroslav@1030: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA jaroslav@1030: * or visit www.oracle.com if you need additional information or have any jaroslav@1030: * questions. jaroslav@1030: */ jaroslav@1030: jaroslav@1030: package java.lang; jaroslav@1030: jaroslav@1030: /** jaroslav@1030: * Thrown when an exceptional arithmetic condition has occurred. For jaroslav@1030: * example, an integer "divide by zero" throws an jaroslav@1030: * instance of this class. jaroslav@1030: * jaroslav@1030: * {@code ArithmeticException} objects may be constructed by the jaroslav@1030: * virtual machine as if {@linkplain Throwable#Throwable(String, jaroslav@1030: * Throwable, boolean, boolean) suppression were disabled and/or the jaroslav@1030: * stack trace was not writable}. jaroslav@1030: * jaroslav@1030: * @author unascribed jaroslav@1030: * @since JDK1.0 jaroslav@1030: */ jaroslav@1030: public class ArithmeticException extends RuntimeException { jaroslav@1030: private static final long serialVersionUID = 2256477558314496007L; jaroslav@1030: jaroslav@1030: /** jaroslav@1030: * Constructs an {@code ArithmeticException} with no detail jaroslav@1030: * message. jaroslav@1030: */ jaroslav@1030: public ArithmeticException() { jaroslav@1030: super(); jaroslav@1030: } jaroslav@1030: jaroslav@1030: /** jaroslav@1030: * Constructs an {@code ArithmeticException} with the specified jaroslav@1030: * detail message. jaroslav@1030: * jaroslav@1030: * @param s the detail message. jaroslav@1030: */ jaroslav@1030: public ArithmeticException(String s) { jaroslav@1030: super(s); jaroslav@1030: } jaroslav@1030: }