Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ThrowsAdviceInterceptor.Invoke Method

Executes interceptor if (and only if) the supplied invocation throws an exception that is mapped to an appropriate exception handler.

[Visual Basic]
Public NotOverridable Sub Invoke( _
   ByVal invocation As IMethodInvocation _
) _
    Implements IMethodInterceptor.Invoke
[C#]
public object Invoke(
   IMethodInvocation invocation
);

Parameters

invocation
The method invocation that is being intercepted.

Return Value

The result of the call to the Proceed method of the supplied invocation (this assumes no exception was thrown by the call to the supplied invocation.

Implements

IMethodInterceptor.Invoke

Exceptions

Exception Type Condition
Exception If any of the interceptors in the chain or the target object itself throws an exception.

See Also

ThrowsAdviceInterceptor Class | Spring.Aop.Framework.Adapter Namespace | Invoke