src/share/classes/javax/lang/model/type/UnknownTypeException.java
Print this page
rev 212 : 6794071: Provide exception superclass for UnknownFooExceptions
Reviewed-by: jjg
@@ -1,7 +1,7 @@
/*
- * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
+ * 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,10 +23,12 @@
* have any questions.
*/
package javax.lang.model.type;
+import javax.lang.model.UnknownEntityException;
+
/**
* Indicates that an unknown kind of type was encountered. This can
* occur if the language evolves and new kinds of types are added to
* the {@code TypeMirror} hierarchy. May be thrown by a {@linkplain
* TypeVisitor type visitor} to indicate that the visitor was created
@@ -36,11 +38,11 @@
* @author Scott Seligman
* @author Peter von der Ahé
* @see TypeVisitor#visitUnknown
* @since 1.6
*/
-public class UnknownTypeException extends RuntimeException {
+public class UnknownTypeException extends UnknownEntityException {
private static final long serialVersionUID = 269L;
private transient TypeMirror type;
private transient Object parameter;