New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Command failed java.lang.reflect.UndeclaredThrowableException #63
Comments
Can you clarify exactly what you want to achieve? If you want to catch exceptions inside the command implementations, then you are certainly allowed to do that (and act on it). |
Hi Eric, Thank you for getting back to me I have the following test case:
We can clearly see the message from beforeInvocation() (ExecutionProcessor) but it never hits the afterThrowingInvocation(). I had added:
Am I hitting a bug or doing something wrong ? Paul |
May |
Thanks, so maybe an example of a command that calls some code that throws an exception like filenotfoundexception and then being able to catch that exception and print it to the shell console. |
Any examples? |
Tidying old 1.x issues |
When is spring 2.x getting released? |
SNAPSHOTs are already available based on the |
SimpleExecutionStrategy throwing UndeclaredThrowableException at ReflectionUtils.invokeMethod.
How do we register (if that is the correct word) our application exceptions that might occur within a command ? I need to capture thrown exceptions correctly.
For example this command makes a remote connection to a service and might fail for a number of reasons.
I have tried implements ExecutionProcessor also no luck as of yet (exception is null).
Paul
The text was updated successfully, but these errors were encountered: