PostSharp 6.9 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Contracts Namespace / Contract­Exception­Info Class / Contract­Exception­Info Properties

ContractExceptionInfo Properties

The ContractExceptionInfo type exposes the following members.

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