equal
deleted
inserted
replaced
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 } |