emul/mini/src/main/java/java/lang/VirtualMachineError.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Sat, 26 Jan 2013 08:47:05 +0100
changeset 592 5e13b1ac2886
parent 77 eaf8b3c52d5b
permissions -rw-r--r--
In order to support fields of the same name in subclasses we are now prefixing them with name of the class that defines them. To provide convenient way to access them from generated bytecode and also directly from JavaScript, there is a getter/setter function for each field. It starts with _ followed by the field name. If called with a parameter, it sets the field, with a parameter it just returns it.
jaroslav@77
     1
/*
jaroslav@77
     2
 * Copyright (c) 1995, 1997, 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@77
    36
abstract public
jaroslav@77
    37
class VirtualMachineError extends Error {
jaroslav@77
    38
    /**
jaroslav@77
    39
     * Constructs a <code>VirtualMachineError</code> with no detail message.
jaroslav@77
    40
     */
jaroslav@77
    41
    public VirtualMachineError() {
jaroslav@77
    42
        super();
jaroslav@77
    43
    }
jaroslav@77
    44
jaroslav@77
    45
    /**
jaroslav@77
    46
     * Constructs a <code>VirtualMachineError</code> with the specified
jaroslav@77
    47
     * detail message.
jaroslav@77
    48
     *
jaroslav@77
    49
     * @param   s   the detail message.
jaroslav@77
    50
     */
jaroslav@77
    51
    public VirtualMachineError(String s) {
jaroslav@77
    52
        super(s);
jaroslav@77
    53
    }
jaroslav@77
    54
}