FileDocCategorySizeDatePackage
MirroredTypeException.javaAPI DocJava SE 5 API1794Fri Aug 26 14:55:14 BST 2005com.sun.mirror.type

MirroredTypeException

public class MirroredTypeException extends RuntimeException
Thrown when an application attempts to access the {@link Class} object corresponding to a {@link TypeMirror}.
see
MirroredTypesException
see
Declaration#getAnnotation(Class)

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

param
type the type being accessed

			// type's qualified "name"

                        
       
	super("Attempt to access Class object for TypeMirror " + type);
	this.type = type;
	name = type.toString();
    
Methods Summary
public java.lang.StringgetQualifiedName()
Returns the fully qualified name of the type being accessed. More precisely, returns the canonical name of a class, interface, array, or primitive, and returns "void" for the pseudo-type representing the type of void.

return
the fully qualified name of the type being accessed

	return name;
    
public com.sun.mirror.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 null if unavailable

	return type;