PostSharp 6.5 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects Namespace / IOn­Method­Boundary­Aspect Interface / IOn­Method­Boundary­Aspect Methods / IOn­Method­Boundary­Aspect.​On­Exception Method

IOnMethodBoundaryAspect.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: 6.5.19.0 (6.5.19.0)
Syntax
C#
void OnException(
	MethodExecutionArgs args
)

Parameters

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