Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » aop » framework » adapter » [javadoc | source]
org.springframework.aop.framework.adapter
public class: ThrowsAdviceInterceptor [javadoc | source]
java.lang.Object
   org.springframework.aop.framework.adapter.ThrowsAdviceInterceptor

All Implemented Interfaces:
    org.aopalliance.intercept.MethodInterceptor, AfterAdvice

Interceptor to wrap an after-throwing advice.

The signatures on handler methods on the ThrowsAdvice implementation method argument must be of the form:
void afterThrowing([Method, args, target], ThrowableSubclass);

Only the last argument is required.

Some examples of valid methods would be:

public void afterThrowing(Exception ex)
public void afterThrowing(RemoteException)
public void afterThrowing(Method method, Object[] args, Object target, Exception ex)
public void afterThrowing(Method method, Object[] args, Object target, ServletException ex)

This is a framework class that need not be used directly by Spring users.

Constructor:
 public ThrowsAdviceInterceptor(Object throwsAdvice) 
    Create a new ThrowsAdviceInterceptor for the given ThrowsAdvice.
Method from org.springframework.aop.framework.adapter.ThrowsAdviceInterceptor Summary:
getHandlerMethodCount,   invoke
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.aop.framework.adapter.ThrowsAdviceInterceptor Detail:
 public int getHandlerMethodCount() 
 public Object invoke(MethodInvocation mi) throws Throwable