PostSharp4.3//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: 4.3.48.0 (4.3.48.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