src/share/classes/javax/lang/model/type/MirroredTypeException.java

changeset 577
852d8bb356bc
parent 554
9d9f26857129
child 798
4868a36f6fd8
equal deleted inserted replaced
576:559c9a37d9f6 577:852d8bb356bc
40 * @author Peter von der Ahé 40 * @author Peter von der Ahé
41 * @see MirroredTypesException 41 * @see MirroredTypesException
42 * @see Element#getAnnotation(Class) 42 * @see Element#getAnnotation(Class)
43 * @since 1.6 43 * @since 1.6
44 */ 44 */
45 public class MirroredTypeException extends RuntimeException { 45 public class MirroredTypeException extends MirroredTypesException {
46 46
47 private static final long serialVersionUID = 269; 47 private static final long serialVersionUID = 269;
48 48
49 private transient TypeMirror type; // cannot be serialized 49 private transient TypeMirror type; // cannot be serialized
50 50
52 * Constructs a new MirroredTypeException for the specified type. 52 * Constructs a new MirroredTypeException for the specified type.
53 * 53 *
54 * @param type the type being accessed 54 * @param type the type being accessed
55 */ 55 */
56 public MirroredTypeException(TypeMirror type) { 56 public MirroredTypeException(TypeMirror type) {
57 super("Attempt to access Class object for TypeMirror " + type.toString()); 57 super("Attempt to access Class object for TypeMirror " + type.toString(), type);
58 this.type = type; 58 this.type = type;
59 } 59 }
60 60
61 /** 61 /**
62 * Returns the type mirror corresponding to the type being accessed. 62 * Returns the type mirror corresponding to the type being accessed.
74 */ 74 */
75 private void readObject(ObjectInputStream s) 75 private void readObject(ObjectInputStream s)
76 throws IOException, ClassNotFoundException { 76 throws IOException, ClassNotFoundException {
77 s.defaultReadObject(); 77 s.defaultReadObject();
78 type = null; 78 type = null;
79 types = null;
79 } 80 }
80 } 81 }

mercurial