Class MethodInvocationException

    • Method Detail

      • methodInvocationException

        public static MethodInvocationException methodInvocationException​(Class<?> useCaseClass,
                                                                          Object useCase,
                                                                          Method useCaseMethod,
                                                                          Object event,
                                                                          Exception cause)
        Factory method to create a new MethodInvocationException
        Parameters:
        useCaseClass - the class of the use case
        useCase - the use case instance
        useCaseMethod - the method to invoke
        event - the current event
        cause - the underlying exception
        Returns:
        the newly created MethodInvocationException