Code example for InvocationTargetException

Methods: getTargetException

0
      throw new ParameterException(ex);
    } catch (IllegalAccessException ex) {
      throw new ParameterException(ex);
    } catch (InvocationTargetException ex) {
      // If a ParameterException was thrown, don't wrap it into another one 
      if (ex.getTargetException() instanceof ParameterException) {
        throw (ParameterException) ex.getTargetException();
      } else { 
        throw new ParameterException(ex);
      } 
    } 
  } 
 
  public ParametersDelegate getDelegateAnnotation() { 
    return m_parametersDelegate;
  } 
 
  public Type getGenericType() {
    if (m_method != null) {
      return m_method.getGenericParameterTypes()[0];