PostSharp6.4/API Reference/Post­Sharp.​Patterns.​Contracts Namespace/Contract­Exception­Info Class

ContractExceptionInfo Class

This class holds the information from which the ContractExceptionFactory should create the exception.
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Contracts.ContractExceptionInfo

Namespace:  PostSharp.Patterns.Contracts
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.4.3.0 (6.4.3.0)
Syntax
C#
public class ContractExceptionInfo

The ContractExceptionInfo type exposes the following members.

Constructors
  NameDescription
Public methodContractExceptionInfo
Initializes the struct.
Properties
  NameDescription
Public propertyAspect
Aspect that requested the exception.
Public propertyContext
The context of the location validation.
Public propertyExceptionType
Type of the exception that should be created.
Public propertyLocationKind
Location kind.
Public propertyLocationName
Name of the location.
Public propertyMessageArguments
Additional parameters to be used in the exception message formatting.
Public propertyMessageId
The id of the error message to be used in the exception message formatting.
Public propertyValue
Value being assigned to the location.
See Also