Open sandboxFocusImprove this doc

Interceptor errors and warnings

Diagnostics reported by Metalama.Extensions.Interceptors.

Article Description
LAMA1000: The interception scope must be inside the target of the aspect An interceptor is registered on a declaration that is outside the target of the aspect or fabric.
LAMA1001: The interception scope is not valid An interception scope is not a declaration of the current project, or not a namespace, type, member or compilation.
LAMA1002: A declaration introduced by an aspect can't be an interception scope An interceptor is registered on a declaration that an aspect introduced.
LAMA1003: The declaring type of the interception target doesn't exist The declaring type of the intercepted methods doesn't exist in the compilation.
LAMA1004: The methods of a type introduced by an aspect can't be intercepted An interceptor targets the methods of a type that an aspect introduced.
LAMA1008: The type has no method of the name selected for interception An interceptor registration selects a method name that the type doesn't declare.
LAMA1010: A call can't have more than one interceptor Several interceptors apply to the same call.
LAMA1011: The call is already intercepted by a C# interceptor A call is intercepted both by Metalama and by a C# interceptor.
LAMA1012: The call site can't be intercepted A limitation of the call site or of the intercepted method prevents its interception.
LAMA1013: The interceptor method isn't compatible with the call site The existing method chosen as interceptor can't replace the intercepted call.
LAMA1014: The interceptor returned an invalid result The interceptor registration returned a result that Metalama can't use.
LAMA1015: A call to a partial method without implementation can't be intercepted A call to a partial method without implementation can't be intercepted.
LAMA1016: The template can't implement the interceptor method The template can't implement the interceptor method generated for a call site.
LAMA1017: The accessibility of the generated interceptor method is inconsistent The generated interceptor method exposes a type that is less accessible than the method.
LAMA1024: The interceptor method can't be generated in the requested placement The generated interceptor method can't be placed where the aspect requests for a call site.