PostSharpAPI ReferencePost­Sharp.​Patterns.​ContractsContract­Exception­Info
Open sandboxFocus

ContractExceptionInfo Class

This class holds the information from which the ContractExceptionFactory should create the exception.

Inheritance
ContractExceptionInfo
Namespace: PostSharp.Patterns.Contracts
Assembly: PostSharp.Patterns.Common.dll
Syntax
public class ContractExceptionInfo : Object

Constructors

Name Description
ContractExceptionInfo(Type, LocationContractAttribute, Object, String, LocationKind, LocationValidationContext, String, Object[])

Initializes the struct.

Properties

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.