Open sandboxFocus

Class InvalidAdviceParametersException

An exception thrown by IAdviceFactory methods when the parameters passed to an advice method are invalid or incompatible with the target declaration.

Inheritance
InvalidAdviceParametersException
Implements
Namespace: Metalama.Framework.Aspects
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public sealed class InvalidAdviceParametersException : Exception, ISerializable
Remarks

This exception is thrown at compile time when an aspect's BuildAspect(IAspectBuilder<T>) method calls an advice factory method (such as Override or IntroduceMethod) with parameters that are not valid for the target declaration.

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.

Implements

Extension Methods

See Also