Post­Sharp Documentation / API Reference / Post­Sharp.​Extensibility Namespace / Invalid­Annotation­Exception Class

InvalidAnnotationException Class

Exception thrown at build time by implementation of CompileTimeValidate(Object) when an annotation is invalid.
Inheritance Hierarchy
System.Object
  System.Exception
    PostSharp.Extensibility.InvalidAnnotationException

Namespace:  PostSharp.Extensibility
Assembly:  PostSharp (in PostSharp.dll) Version: 5.0.51.0 (5.0.51.0)
Syntax
C#
[SerializableAttribute]
public class InvalidAnnotationException : Exception

The InvalidAnnotationException type exposes the following members.

Constructors
  NameDescription
Public methodInvalidAnnotationException()
Initializes a new InvalidAnnotationException with default message.
Public methodInvalidAnnotationException(String)
Initializes a new InvalidAnnotationException and with a specified exception message.
Protected methodInvalidAnnotationException(SerializationInfo, StreamingContext)
Deserialization constructor.
Public methodInvalidAnnotationException(String, Exception)
Initializes a new InvalidAnnotationException with a specified exception message and inner Exception.
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also