Thanks Marten,
But I already had a gander at the chapter you reference. Those examples only show you how to intercept specific methods whose execution exits by throwing an exception.
I'm...
Type: Posts; User: zharvey; Keyword(s):
Thanks Marten,
But I already had a gander at the chapter you reference. Those examples only show you how to intercept specific methods whose execution exits by throwing an exception.
I'm...
I'm trying to configure Spring so that it executes advice when a specific exception subclass (MyTestException) is thrown:
public class MyTestExceptionInterceptor implements ThrowsAdvice
...
I guess the short answer is "yes". Thanks for all your help Marten, this took a couple of days to peg down but think I have resolved it. Again, thank you.
Yes it is a public class and it has a no-arg constructor. Per your request, here is the entire stack trace, although I do apologize for its size.
[2011-10-03 13:57:50,268] INFO ...
I just used your example and am getting a nasty error/stack trace:
Error creating bean with name 'LoginHelper' defined in class path resource [spring/client-config.xml]: Initialization of bean...
Thanks Marten,
Will your code example work with ThrowsAdvice implementations or MethodInterceptor implementations?
I am struggling to write/configure a ThrowsAdvice interceptor that I want to intercept all exceptions thrown throughout my project:
public class ExceptionsInterceptor implements ThrowsAdvice...