-
Notifications
You must be signed in to change notification settings - Fork 1
Diagnostics
Igor Tkachev edited this page Jun 11, 2026
·
1 revision
AspectGenerator diagnostics are intended to report user mistakes before generated code fails to compile.
-
AG0001:OnCallaspect must be last when the aspect is applied directly. -
AG0002:OnCallaspect must be last when the aspect is inferred from method metadata. -
AG0003: invocation cannot be intercepted by the compiler. -
AG0004: generated interceptor namespace is not listed inInterceptorsNamespaces.
-
AG0101: hook method not found. -
AG0102: hook method must be static. -
AG0103: invalid hook parameter type. -
AG0104: invalid hook return type. -
AG0105:OnCallsignature mismatch. -
AG0106:UseInterceptData=truerequiresref InterceptData<T>. -
AG0107: async hook requires a supported async target.
- unmatched method display string;
- ambiguous match;
- alias-sensitive match requiring a more precise spelling.