Class MethodInvocationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- de.quantummaid.eventmaid.usecases.usecaseadapter.methodinvoking.MethodInvocationException
-
- All Implemented Interfaces:
Serializable
public final class MethodInvocationException extends RuntimeException
This message is thrown, whenUseCaseMethodInvokerfailed to invoke the method.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MethodInvocationExceptionmethodInvocationException(Class<?> useCaseClass, Object useCase, Method useCaseMethod, Object event, Exception cause)Factory method to create a newMethodInvocationException-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
methodInvocationException
public static MethodInvocationException methodInvocationException(Class<?> useCaseClass, Object useCase, Method useCaseMethod, Object event, Exception cause)
Factory method to create a newMethodInvocationException- Parameters:
useCaseClass- the class of the use caseuseCase- the use case instanceuseCaseMethod- the method to invokeevent- the current eventcause- the underlying exception- Returns:
- the newly created
MethodInvocationException
-
-