[BUG] .configured(toMapExceptions().ofType(...)) does not map matching *checked* exception, calls default exception mapper with MethodInvocationException instead #10
Labels
bug
Something isn't working
Describe the bug
I mapped a checked exception to a specific mapper, but it is not called when a use case throws the exception. Instead, the default exception handler is called with an exception of type
com.envimate.messageMate.useCases.useCasesAdapter.methodInvoking.MethodInvocationException
To Reproduce
Setup an application exception mapper next to the default exception mapper, for a checked application exception (it only happens with checked exceptions)
Cause the exception to occur in the invoked use case
The uncaughtExceptionHandler is called with
Expected behavior
The caughtExceptionMapper should be called.
I masked my real class names, but please do ask if you need more details.
The text was updated successfully, but these errors were encountered: