MetalamaAPI documentationPost­Sharp API migrationPost­Sharp.​AspectsIOn­Exception­Aspect
Open sandboxFocus

IOnExceptionAspect Interface

In Metalama, use OverrideMethodAspect and write your own try/catch block.

Namespace: PostSharp.Aspects
Assembly: Metalama.Migration.dll
Syntax
public interface IOnExceptionAspect : IMethodLevelAspect, IAspect

Methods

Name Description
OnException(MethodExecutionArgs)

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