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

OnExceptionAspect.OnException Method

OnException(MethodExecutionArgs)

Implement OverrideMethod() and write your own try/catch block.

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