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.
Also see:
- TypeVisitor#visitUnknown
- author:
Joseph - D. Darcy
- author:
Scott - Seligman
- author:
Peter - von der Ahé
- since:
1.6 -
| Constructor: |
public UnknownTypeException(TypeMirror t,
Object p) {
super("Unknown type: " + t);
type = t;
this.parameter = 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}
|
| 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() {
return parameter;
}
Returns the additional argument. |
public TypeMirror getUnknownType() {
return type;
}
Returns the unknown type.
The value may be unavailable if this exception has been
serialized and then read back in. |