Save This Page
Home » openjdk-7 » javax.lang » model » type » [javadoc | source]
javax.lang.model.type
public class: UnknownTypeException [javadoc | source]
java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         java.lang.RuntimeException
            javax.lang.model.type.UnknownTypeException

All Implemented Interfaces:
    Serializable

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 for a prior version of the language.
Fields inherited from java.lang.RuntimeException:
serialVersionUID
Fields inherited from java.lang.Exception:
serialVersionUID
Constructor:
 public UnknownTypeException(TypeMirror t,
    Object p) 
    Creates a new {@code UnknownTypeException}.The {@code p} parameter may be used to pass in an additional argument with information about the context in which the unknown type was encountered; for example, the visit methods of TypeVisitor may pass in their additional parameter.
    Parameters:
    t - the unknown type, may be {@code null}
    p - an additional parameter, may be {@code null}
Method from javax.lang.model.type.UnknownTypeException Summary:
getArgument,   getUnknownType
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.lang.model.type.UnknownTypeException Detail:
 public Object getArgument() 
    Returns the additional argument.
 public TypeMirror getUnknownType() 
    Returns the unknown type. The value may be unavailable if this exception has been serialized and then read back in.