rt/emul/mini/src/main/java/java/lang/ArithmeticException.java
author Lubomir Nerad <lubomir.nerad@oracle.com>
Fri, 24 May 2013 16:45:32 +0200
branchclosure
changeset 1143 22beb858e00a
child 1146 e499b0dddd12
permissions -rw-r--r--
Partial fix for Bug 5032: added ArithmeticException to fixed dependencies
lubomir@1143
     1
/*
lubomir@1143
     2
 * Copyright (c) 1994, 2011, Oracle and/or its affiliates. All rights reserved.
lubomir@1143
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
lubomir@1143
     4
 *
lubomir@1143
     5
 * This code is free software; you can redistribute it and/or modify it
lubomir@1143
     6
 * under the terms of the GNU General Public License version 2 only, as
lubomir@1143
     7
 * published by the Free Software Foundation.  Oracle designates this
lubomir@1143
     8
 * particular file as subject to the "Classpath" exception as provided
lubomir@1143
     9
 * by Oracle in the LICENSE file that accompanied this code.
lubomir@1143
    10
 *
lubomir@1143
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
lubomir@1143
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
lubomir@1143
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
lubomir@1143
    14
 * version 2 for more details (a copy is included in the LICENSE file that
lubomir@1143
    15
 * accompanied this code).
lubomir@1143
    16
 *
lubomir@1143
    17
 * You should have received a copy of the GNU General Public License version
lubomir@1143
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
lubomir@1143
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
lubomir@1143
    20
 *
lubomir@1143
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
lubomir@1143
    22
 * or visit www.oracle.com if you need additional information or have any
lubomir@1143
    23
 * questions.
lubomir@1143
    24
 */
lubomir@1143
    25
lubomir@1143
    26
package java.lang;
lubomir@1143
    27
lubomir@1143
    28
/**
lubomir@1143
    29
 * Thrown when an exceptional arithmetic condition has occurred. For
lubomir@1143
    30
 * example, an integer "divide by zero" throws an
lubomir@1143
    31
 * instance of this class.
lubomir@1143
    32
 *
lubomir@1143
    33
 * {@code ArithmeticException} objects may be constructed by the
lubomir@1143
    34
 * virtual machine as if {@linkplain Throwable#Throwable(String,
lubomir@1143
    35
 * Throwable, boolean, boolean) suppression were disabled and/or the
lubomir@1143
    36
 * stack trace was not writable}.
lubomir@1143
    37
 *
lubomir@1143
    38
 * @author  unascribed
lubomir@1143
    39
 * @since   JDK1.0
lubomir@1143
    40
 */
lubomir@1143
    41
public class ArithmeticException extends RuntimeException {
lubomir@1143
    42
    private static final long serialVersionUID = 2256477558314496007L;
lubomir@1143
    43
lubomir@1143
    44
    /**
lubomir@1143
    45
     * Constructs an {@code ArithmeticException} with no detail
lubomir@1143
    46
     * message.
lubomir@1143
    47
     */
lubomir@1143
    48
    public ArithmeticException() {
lubomir@1143
    49
        super();
lubomir@1143
    50
    }
lubomir@1143
    51
lubomir@1143
    52
    /**
lubomir@1143
    53
     * Constructs an {@code ArithmeticException} with the specified
lubomir@1143
    54
     * detail message.
lubomir@1143
    55
     *
lubomir@1143
    56
     * @param   s   the detail message.
lubomir@1143
    57
     */
lubomir@1143
    58
    public ArithmeticException(String s) {
lubomir@1143
    59
        super(s);
lubomir@1143
    60
    }
lubomir@1143
    61
}