PostSharp6.5//API Reference/Post­Sharp.​Patterns Namespace/Assertion­Failed­Exception Class

AssertionFailedException Class

Exception thrown upon internal assertion failures in PostSharp Pattern Libraries.
Inheritance Hierarchy
System.Object
  System.Exception
    PostSharp.Patterns.AssertionFailedException

Namespace:  PostSharp.Patterns
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.5.9.0 (6.5.9.0)
Syntax
C#
[SerializableAttribute]
public sealed class AssertionFailedException : Exception
Constructors
  NameDescription
Public methodAssertionFailedException()
Initializes a new AssertionFailedException with the default error message.
Public methodAssertionFailedException(String)
Initializes a new AssertionFailedException and specifies the error message.
Public methodAssertionFailedException(String, Exception)
Initializes a new AssertionFailedException and specifies the error message and the inner Exception.
See Also