rt/emul/mini/src/main/java/java/lang/LinkageError.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Tue, 26 Feb 2013 16:54:16 +0100
changeset 772 d382dacfd73f
parent 554 emul/mini/src/main/java/java/lang/LinkageError.java@05224402145d
permissions -rw-r--r--
Moving modules around so the runtime is under one master pom and can be built without building other modules that are in the repository
jtulach@120
     1
/*
jtulach@120
     2
 * Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
jtulach@120
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
jtulach@120
     4
 *
jtulach@120
     5
 * This code is free software; you can redistribute it and/or modify it
jtulach@120
     6
 * under the terms of the GNU General Public License version 2 only, as
jtulach@120
     7
 * published by the Free Software Foundation.  Oracle designates this
jtulach@120
     8
 * particular file as subject to the "Classpath" exception as provided
jtulach@120
     9
 * by Oracle in the LICENSE file that accompanied this code.
jtulach@120
    10
 *
jtulach@120
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
jtulach@120
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
jtulach@120
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
jtulach@120
    14
 * version 2 for more details (a copy is included in the LICENSE file that
jtulach@120
    15
 * accompanied this code).
jtulach@120
    16
 *
jtulach@120
    17
 * You should have received a copy of the GNU General Public License version
jtulach@120
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
jtulach@120
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
jtulach@120
    20
 *
jtulach@120
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
jtulach@120
    22
 * or visit www.oracle.com if you need additional information or have any
jtulach@120
    23
 * questions.
jtulach@120
    24
 */
jtulach@120
    25
jtulach@120
    26
package java.lang;
jtulach@120
    27
jtulach@120
    28
/**
jtulach@120
    29
 * Subclasses of {@code LinkageError} indicate that a class has
jtulach@120
    30
 * some dependency on another class; however, the latter class has
jtulach@120
    31
 * incompatibly changed after the compilation of the former class.
jtulach@120
    32
 *
jtulach@120
    33
 *
jtulach@120
    34
 * @author  Frank Yellin
jtulach@120
    35
 * @since   JDK1.0
jtulach@120
    36
 */
jtulach@120
    37
public
jtulach@120
    38
class LinkageError extends Error {
jtulach@120
    39
    private static final long serialVersionUID = 3579600108157160122L;
jtulach@120
    40
jtulach@120
    41
    /**
jtulach@120
    42
     * Constructs a {@code LinkageError} with no detail message.
jtulach@120
    43
     */
jtulach@120
    44
    public LinkageError() {
jtulach@120
    45
        super();
jtulach@120
    46
    }
jtulach@120
    47
jtulach@120
    48
    /**
jtulach@120
    49
     * Constructs a {@code LinkageError} with the specified detail
jtulach@120
    50
     * message.
jtulach@120
    51
     *
jtulach@120
    52
     * @param   s   the detail message.
jtulach@120
    53
     */
jtulach@120
    54
    public LinkageError(String s) {
jtulach@120
    55
        super(s);
jtulach@120
    56
    }
jtulach@120
    57
jtulach@120
    58
    /**
jtulach@120
    59
     * Constructs a {@code LinkageError} with the specified detail
jtulach@120
    60
     * message and cause.
jtulach@120
    61
     *
jtulach@120
    62
     * @param s     the detail message.
jtulach@120
    63
     * @param cause the cause, may be {@code null}
jtulach@120
    64
     * @since 1.7
jtulach@120
    65
     */
jtulach@120
    66
    public LinkageError(String s, Throwable cause) {
jtulach@120
    67
        super(s, cause);
jtulach@120
    68
    }
jtulach@120
    69
}