PostSharp5.0/API Reference/Post­Sharp.​Aspects Namespace/On­Method­Boundary­Aspect Class/On­Method­Boundary­Aspect Methods/On­Method­Boundary­Aspect.​On­Exception Method

OnMethodBoundaryAspect.OnException Method

Method executed after the body of methods to which this aspect is applied, in case that the method resulted with an exception.

Namespace:  PostSharp.Aspects
Assembly:  PostSharp (in PostSharp.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
public virtual void OnException(
	MethodExecutionArgs args
)

Parameters

args
Type: PostSharp.Aspects.MethodExecutionArgs
Event arguments specifying which method is being executed and which are its arguments.

Implements

IOnMethodBoundaryAspect.OnException(MethodExecutionArgs)
See Also