src/share/classes/javax/lang/model/UnknownEntityException.java

Tue, 25 May 2010 15:54:51 -0700

author
ohair
date
Tue, 25 May 2010 15:54:51 -0700
changeset 554
9d9f26857129
parent 216
58fcba61a77d
child 2525
2eb010b6cb22
permissions
-rw-r--r--

6943119: Rebrand source copyright notices
Reviewed-by: darcy

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

mercurial