ContractExceptionInfo Class |
This class holds the information from which the ContractExceptionFactory should create the exception.
Namespace: PostSharp.Patterns.Contracts
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.9.11.0 (6.9.11.0)
C#
public class ContractExceptionInfo
The ContractExceptionInfo type exposes the following members.
Name | Description | |
---|---|---|
ContractExceptionInfo |
Initializes the struct.
|
Name | Description | |
---|---|---|
Aspect |
Aspect that requested the exception.
| |
Context |
The context of the location validation.
| |
ExceptionType |
Type of the exception that should be created.
| |
LocationKind |
Location kind.
| |
LocationName |
Name of the location.
| |
MessageArguments |
Additional parameters to be used in the exception message formatting.
| |
MessageId |
The id of the error message to be used in the exception message formatting.
| |
Value |
Value being assigned to the location.
|