PostSharpAPI ReferencePost­Sharp.​AspectsOn­Exception­AspectOn­Exception
Open sandboxFocus

OnExceptionAspect.OnException Method

OnException(MethodExecutionArgs)

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

Declaration
[MethodExecutionAdviceOptimization]
[RequiresMethodExecutionAdviceAnalysis]
[RequiresDebuggerEnhancement]
[HasInheritedAttribute]
public virtual void OnException(MethodExecutionArgs args)
Parameters
Type Name Description
MethodExecutionArgs args

Advice arguments.

Implements
IOnExceptionAspect.OnException(MethodExecutionArgs)