langtools/src/share/classes/javax/lang/model/element/UnknownElementException.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved. |
2 * Copyright 2005-2009 Sun Microsystems, Inc. All Rights Reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Sun designates this |
7 * published by the Free Software Foundation. Sun designates this |
23 * have any questions. |
23 * have any questions. |
24 */ |
24 */ |
25 |
25 |
26 package javax.lang.model.element; |
26 package javax.lang.model.element; |
27 |
27 |
|
28 import javax.lang.model.UnknownEntityException; |
|
29 |
28 /** |
30 /** |
29 * Indicates that an unknown kind of element was encountered. This |
31 * Indicates that an unknown kind of element was encountered. This |
30 * can occur if the language evolves and new kinds of elements are |
32 * can occur if the language evolves and new kinds of elements are |
31 * added to the {@code Element} hierarchy. May be thrown by an |
33 * added to the {@code Element} hierarchy. May be thrown by an |
32 * {@linkplain ElementVisitor element visitor} to indicate that the |
34 * {@linkplain ElementVisitor element visitor} to indicate that the |
36 * @author Scott Seligman |
38 * @author Scott Seligman |
37 * @author Peter von der Ahé |
39 * @author Peter von der Ahé |
38 * @see ElementVisitor#visitUnknown |
40 * @see ElementVisitor#visitUnknown |
39 * @since 1.6 |
41 * @since 1.6 |
40 */ |
42 */ |
41 public class UnknownElementException extends RuntimeException { |
43 public class UnknownElementException extends UnknownEntityException { |
42 |
44 |
43 private static final long serialVersionUID = 269L; |
45 private static final long serialVersionUID = 269L; |
44 |
46 |
45 private transient Element element; |
47 private transient Element element; |
46 private transient Object parameter; |
48 private transient Object parameter; |