PostSharp 6.9 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Contracts Namespace / Postcondition­Failed­Exception Class / Postcondition­Failed­Exception Constructor / Postcondition­Failed­Exception Constructor (String)

PostconditionFailedException Constructor (String)

Initializes a new instance of the PostconditionFailedException class with a specified error message.

Namespace:  PostSharp.Patterns.Contracts
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.9.11.0 (6.9.11.0)
Syntax
C#
public PostconditionFailedException(
	string message
)

Parameters

message
Type: System.String
Exception message.
See Also