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

IOnExceptionAspect.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
[RequiresMethodExecutionAdviceAnalysis]
[RequiresDebuggerEnhancement]
[HasInheritedAttribute]
void OnException(MethodExecutionArgs args)
Parameters
Type Name Description
MethodExecutionArgs args

Advice arguments.