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

OnExceptionAspect.OnException Method

Method executed after the body of methods to which this aspect is applied, in case that the method resulted with an exception (i.e., in a catch block).

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

Parameters

args
Type: PostSharp.Aspects.MethodExecutionArgs
Advice arguments.

Implements

IOnExceptionAspect.OnException(MethodExecutionArgs)
See Also