javax.lang.model.type
类 MirroredTypeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javax.lang.model.type.MirroredTypeException
- 所有已实现的接口:
- Serializable
public class MirroredTypeException
- extends RuntimeException
当应用程序试图访问对应于 TypeMirror 的 Class 对象时,抛出此异常。
- 从以下版本开始:
- 1.6
- 另请参见:
MirroredTypesException,
Element.getAnnotation(Class),
序列化表格
| 从类 java.lang.Throwable 继承的方法 |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
MirroredTypeException
public MirroredTypeException(TypeMirror type)
- 构造一个针对指定类型的新 MirroredTypeException。
- 参数:
type - 要访问的类型
getTypeMirror
public TypeMirror getTypeMirror()
- 返回对应于要访问类型的类型镜像。如果已经序列化此异常并随后将其读回,则该类型镜像将不可用。
- 返回:
- 类型镜像;如果不可用,则返回
null