An exception thrown by IAdviceFactory methods when the parameters passed to an advice method are invalid or incompatible with the target declaration.
Implements
Namespace: Metalama.Framework.Aspects
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public sealed class InvalidAdviceParametersException : Exception, ISerializableRemarks
This exception is thrown at compile time when an aspect's BuildAspect(IAspectBuilder<T>) method
calls an advice factory method (such as
Common causes include:
- Specifying a template name that does not exist in the aspect class.
- Passing incompatible tag values or compile-time arguments.
- Using an OverrideStrategy that is not applicable to the target.