MetalamaAPI documentationPost­Sharp API migrationPost­Sharp.​AspectsOn­Method­Boundary­AspectOn­Exception
Open sandboxFocus

OnMethodBoundaryAspect.OnException Method

OnException(MethodExecutionArgs)

Implement OverrideMethod(), call meta.Proceed() in a try/catch block, and add this logic to the catch block.

Declaration
public virtual void OnException(MethodExecutionArgs args)
Parameters
Type Name Description
MethodExecutionArgs args
Implements
IOnMethodBoundaryAspect.OnException(MethodExecutionArgs)