Code example for InvocationTargetException

Methods: getCause

0
            membersInjector.injectMembers(t, errors, context);
            membersInjector.notifyListeners(t, errors);
 
            return t;
        } catch (InvocationTargetException userException) {
            Throwable cause = userException.getCause() != null
                    ? userException.getCause()
                    : userException;
            throw errors.withSource(constructionProxy.getInjectionPoint())
                    .errorInjectingConstructor(cause).toException();
        } finally { 
            constructionContext.removeCurrentReference();
        } 
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java