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

OnExceptionAspect.GetExceptionType Method

GetExceptionType(MethodBase)

There is no equivalent in Metalama because you write your own try/catch code in the template.

Declaration
public virtual Type GetExceptionType(MethodBase targetMethod)
Parameters
Type Name Description
System.Reflection.MethodBase targetMethod
Returns
Type Description
System.Type