This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.lang.model.element
exception UnknownElementException

java.lang.Object extended by java.lang.Throwable extended by java.lang.Exception extended by java.lang.RuntimeException extended by javax.lang.model.element.UnknownElementException
All Implemented Interfaces:
Serializable

public exception UnknownElementException
extends RuntimeException

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 visitor was created for a prior version of the language.


Constructor Summary

          Creates a new .
 
Method Summary
 Object

          Returns the additional argument.
 Element

          Returns the unknown element.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnknownElementException

public UnknownElementException(Element e,
                               Object p)
Creates a new {@code UnknownElementException}. The {@code p} parameter may be used to pass in an additional argument with information about the context in which the unknown element was encountered; for example, the visit methods of {@link ElementVisitor} may pass in their additional parameter.

Parameters:
e - the unknown element, may be {@code null}
p - an additional parameter, may be {@code null}
Method Detail

getArgument

public Object getArgument()
Returns the additional argument.

Returns:
the additional argument

getUnknownElement

public Element getUnknownElement()
Returns the unknown element. The value may be unavailable if this exception has been serialized and then read back in.

Returns:
the unknown element, or {@code null} if unavailable


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.