FileDocCategorySizeDatePackage
MirroredTypeException.javaAPI DocJava SE 6 API1419Tue Jun 10 00:26:10 BST 2008javax.lang.model.type

MirroredTypeException

public class MirroredTypeException extends RuntimeException
Thrown when an application attempts to access the {@link Class} object corresponding to a {@link TypeMirror}.
author
Joseph D. Darcy
author
Scott Seligman
author
Peter von der Ahé
version
1.3 06/07/31
see
MirroredTypesException
see
Element#getAnnotation(Class)
since
1.6

Fields Summary
private static final long
serialVersionUID
private transient TypeMirror
type
Constructors Summary
public MirroredTypeException(TypeMirror type)
Constructs a new MirroredTypeException for the specified type.

param
type the type being accessed

		// cannot be serialized

                        
       
	super("Attempt to access Class object for TypeMirror " + type);
	this.type = type;
    
Methods Summary
public javax.lang.model.type.TypeMirrorgetTypeMirror()
Returns the type mirror corresponding to the type being accessed. The type mirror may be unavailable if this exception has been serialized and then read back in.

return
the type mirror, or {@code null} if unavailable

	return type;