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.type; |
26 package javax.lang.model.type; |
27 |
27 |
|
28 import javax.lang.model.UnknownEntityException; |
|
29 |
28 /** |
30 /** |
29 * Indicates that an unknown kind of type was encountered. This can |
31 * Indicates that an unknown kind of type was encountered. This can |
30 * occur if the language evolves and new kinds of types are added to |
32 * occur if the language evolves and new kinds of types are added to |
31 * the {@code TypeMirror} hierarchy. May be thrown by a {@linkplain |
33 * the {@code TypeMirror} hierarchy. May be thrown by a {@linkplain |
32 * TypeVisitor type visitor} to indicate that the visitor was created |
34 * TypeVisitor type visitor} to indicate that the visitor was created |
36 * @author Scott Seligman |
38 * @author Scott Seligman |
37 * @author Peter von der Ahé |
39 * @author Peter von der Ahé |
38 * @see TypeVisitor#visitUnknown |
40 * @see TypeVisitor#visitUnknown |
39 * @since 1.6 |
41 * @since 1.6 |
40 */ |
42 */ |
41 public class UnknownTypeException extends RuntimeException { |
43 public class UnknownTypeException extends UnknownEntityException { |
42 |
44 |
43 private static final long serialVersionUID = 269L; |
45 private static final long serialVersionUID = 269L; |
44 |
46 |
45 private transient TypeMirror type; |
47 private transient TypeMirror type; |
46 private transient Object parameter; |
48 private transient Object parameter; |