public class

ThrowsAdviceInterceptor

extends Object
implements AfterAdvice
java.lang.Object
   ↳ org.springframework.aop.framework.adapter.ThrowsAdviceInterceptor

Class Overview

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.

Summary

Public Constructors
ThrowsAdviceInterceptor(Object throwsAdvice)
Create a new ThrowsAdviceInterceptor for the given ThrowsAdvice.
Public Methods
int getHandlerMethodCount()
Object invoke(MethodInvocation mi)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ThrowsAdviceInterceptor (Object throwsAdvice)

Create a new ThrowsAdviceInterceptor for the given ThrowsAdvice.

Parameters
throwsAdvice the advice object that defines the exception handler methods (usually a ThrowsAdvice implementation)

Public Methods

public int getHandlerMethodCount ()

public Object invoke (MethodInvocation mi)

Throws
Throwable