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