langtools/src/java.compiler/share/classes/javax/lang/model/UnknownEntityException.java
author yan
Mon, 10 Nov 2014 16:23:30 +0300
changeset 27763 1fba965925e8
parent 25874 83c19f00452c
child 43567 d0d89c3da7be
permissions -rw-r--r--
8063102: Change open awt regression tests to avoid sun.awt.SunToolkit.realSync, part 1 Reviewed-by: pchelko, serb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1997
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
     1
/*
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 1997
diff changeset
     2
 * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
1997
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
     4
 *
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 1997
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
1997
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 1997
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
1997
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    10
 *
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    15
 * accompanied this code).
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    16
 *
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    20
 *
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 1997
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 1997
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 1997
diff changeset
    23
 * questions.
1997
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    24
 */
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    25
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    26
package javax.lang.model;
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    27
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    28
/**
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    29
 * Superclass of exceptions which indicate that an unknown kind of
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    30
 * entity was encountered.  This situation can occur if the language
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    31
 * evolves and new kinds of constructs are introduced.  Subclasses of
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    32
 * this exception may be thrown by visitors to indicate that the
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    33
 * visitor was created for a prior version of the language.
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    34
 *
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    35
 * <p>A common superclass for those exceptions allows a single catch
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    36
 * block to have code handling them uniformly.
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    37
 *
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    38
 * @author Joseph D. Darcy
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    39
 * @see javax.lang.model.element.UnknownElementException
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    40
 * @see javax.lang.model.element.UnknownAnnotationValueException
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    41
 * @see javax.lang.model.type.UnknownTypeException
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    42
 * @since 1.7
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    43
 */
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    44
public class UnknownEntityException extends RuntimeException {
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    45
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    46
    private static final long serialVersionUID = 269L;
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    47
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    48
    /**
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    49
     * Creates a new {@code UnknownEntityException} with the specified
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    50
     * detail message.
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    51
     *
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    52
     * @param message the detail message
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    53
     */
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    54
    protected UnknownEntityException(String message) {
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    55
        super(message);
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    56
    }
df0f51fe10de 6794071: Provide exception superclass for UnknownFooExceptions
darcy
parents:
diff changeset
    57
}