rt/emul/mini/src/main/java/java/lang/VirtualMachineError.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Sun, 10 Aug 2014 06:21:50 +0200
branchjdk8
changeset 1652 8fb89a569621
parent 772 d382dacfd73f
permissions -rw-r--r--
Making sure various classes are defined only at one place
jaroslav@77
     1
/*
jaroslav@1652
     2
 * Copyright (c) 1995, 2011, Oracle and/or its affiliates. All rights reserved.
jaroslav@77
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
jaroslav@77
     4
 *
jaroslav@77
     5
 * This code is free software; you can redistribute it and/or modify it
jaroslav@77
     6
 * under the terms of the GNU General Public License version 2 only, as
jaroslav@77
     7
 * published by the Free Software Foundation.  Oracle designates this
jaroslav@77
     8
 * particular file as subject to the "Classpath" exception as provided
jaroslav@77
     9
 * by Oracle in the LICENSE file that accompanied this code.
jaroslav@77
    10
 *
jaroslav@77
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
jaroslav@77
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
jaroslav@77
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
jaroslav@77
    14
 * version 2 for more details (a copy is included in the LICENSE file that
jaroslav@77
    15
 * accompanied this code).
jaroslav@77
    16
 *
jaroslav@77
    17
 * You should have received a copy of the GNU General Public License version
jaroslav@77
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
jaroslav@77
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
jaroslav@77
    20
 *
jaroslav@77
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
jaroslav@77
    22
 * or visit www.oracle.com if you need additional information or have any
jaroslav@77
    23
 * questions.
jaroslav@77
    24
 */
jaroslav@77
    25
jaroslav@77
    26
package java.lang;
jaroslav@77
    27
jaroslav@77
    28
/**
jaroslav@77
    29
 * Thrown to indicate that the Java Virtual Machine is broken or has
jaroslav@77
    30
 * run out of resources necessary for it to continue operating.
jaroslav@77
    31
 *
jaroslav@77
    32
 *
jaroslav@77
    33
 * @author  Frank Yellin
jaroslav@77
    34
 * @since   JDK1.0
jaroslav@77
    35
 */
jaroslav@1652
    36
abstract public class VirtualMachineError extends Error {
jaroslav@1652
    37
    private static final long serialVersionUID = 4161983926571568670L;
jaroslav@1652
    38
jaroslav@77
    39
    /**
jaroslav@77
    40
     * Constructs a <code>VirtualMachineError</code> with no detail message.
jaroslav@77
    41
     */
jaroslav@77
    42
    public VirtualMachineError() {
jaroslav@77
    43
        super();
jaroslav@77
    44
    }
jaroslav@77
    45
jaroslav@77
    46
    /**
jaroslav@77
    47
     * Constructs a <code>VirtualMachineError</code> with the specified
jaroslav@77
    48
     * detail message.
jaroslav@77
    49
     *
jaroslav@1652
    50
     * @param   message   the detail message.
jaroslav@77
    51
     */
jaroslav@1652
    52
    public VirtualMachineError(String message) {
jaroslav@1652
    53
        super(message);
jaroslav@1652
    54
    }
jaroslav@1652
    55
jaroslav@1652
    56
    /**
jaroslav@1652
    57
     * Constructs a {@code VirtualMachineError} with the specified
jaroslav@1652
    58
     * detail message and cause.  <p>Note that the detail message
jaroslav@1652
    59
     * associated with {@code cause} is <i>not</i> automatically
jaroslav@1652
    60
     * incorporated in this error's detail message.
jaroslav@1652
    61
     *
jaroslav@1652
    62
     * @param  message the detail message (which is saved for later retrieval
jaroslav@1652
    63
     *         by the {@link #getMessage()} method).
jaroslav@1652
    64
     * @param  cause the cause (which is saved for later retrieval by the
jaroslav@1652
    65
     *         {@link #getCause()} method).  (A {@code null} value is
jaroslav@1652
    66
     *         permitted, and indicates that the cause is nonexistent or
jaroslav@1652
    67
     *         unknown.)
jaroslav@1652
    68
     * @since  1.8
jaroslav@1652
    69
     */
jaroslav@1652
    70
    public VirtualMachineError(String message, Throwable cause) {
jaroslav@1652
    71
        super(message, cause);
jaroslav@1652
    72
    }
jaroslav@1652
    73
jaroslav@1652
    74
    /**
jaroslav@1652
    75
     * Constructs an a {@code VirtualMachineError} with the specified
jaroslav@1652
    76
     * cause and a detail message of {@code (cause==null ? null :
jaroslav@1652
    77
     * cause.toString())} (which typically contains the class and
jaroslav@1652
    78
     * detail message of {@code cause}).
jaroslav@1652
    79
     *
jaroslav@1652
    80
     * @param  cause the cause (which is saved for later retrieval by the
jaroslav@1652
    81
     *         {@link #getCause()} method).  (A {@code null} value is
jaroslav@1652
    82
     *         permitted, and indicates that the cause is nonexistent or
jaroslav@1652
    83
     *         unknown.)
jaroslav@1652
    84
     * @since  1.8
jaroslav@1652
    85
     */
jaroslav@1652
    86
    public VirtualMachineError(Throwable cause) {
jaroslav@1652
    87
        super(cause);
jaroslav@77
    88
    }
jaroslav@77
    89
}