Open sandboxFocus

Class ContractExceptionInfo

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

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.