Code example for Method

Methods: getExceptionTypes

0
	public int getIndex() { 
		return index;
	} 
 
	public Class<?> getType() {
		return method != null ? method.getExceptionTypes()[index] : constructor
				.getExceptionTypes()[index];
	} 
 
	public Class<?> getResolvedType(Class<?> concreteClass) {
		Type t = method != null ? method.getGenericExceptionTypes()[index]
				: constructor.getGenericExceptionTypes()[index];
 
		if (t instanceof TypeVariable<?>) {
			return ReflectionUtils.resolveTypeVariable(concreteClass,
					(TypeVariable<?>) t);
		} 
 
		return getType(); 
	}