src/share/classes/javax/lang/model/element/UnknownElementException.java

Print this page
rev 212 : 6794071: Provide exception superclass for UnknownFooExceptions
Reviewed-by: jjg

*** 1,7 **** /* ! * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Sun designates this --- 1,7 ---- /* ! * Copyright 2005-2009 Sun Microsystems, Inc. All Rights Reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Sun designates this
*** 23,32 **** --- 23,34 ---- * have any questions. */ package javax.lang.model.element; + import javax.lang.model.UnknownEntityException; + /** * Indicates that an unknown kind of element was encountered. This * can occur if the language evolves and new kinds of elements are * added to the {@code Element} hierarchy. May be thrown by an * {@linkplain ElementVisitor element visitor} to indicate that the
*** 36,46 **** * @author Scott Seligman * @author Peter von der Ahé * @see ElementVisitor#visitUnknown * @since 1.6 */ ! public class UnknownElementException extends RuntimeException { private static final long serialVersionUID = 269L; private transient Element element; private transient Object parameter; --- 38,48 ---- * @author Scott Seligman * @author Peter von der Ahé * @see ElementVisitor#visitUnknown * @since 1.6 */ ! public class UnknownElementException extends UnknownEntityException { private static final long serialVersionUID = 269L; private transient Element element; private transient Object parameter;