PostSharp6.6//API Reference/Post­Sharp.​Patterns.​Contracts Namespace/Strict­Range­Attribute Class/Strict­Range­Attribute Methods/Strict­Range­Attribute.​Create­Exception Method

StrictRangeAttribute.CreateException Method

Namespace:  PostSharp.Patterns.Contracts
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.6.14.0 (6.6.14.0)
Syntax
C#
protected override Exception CreateException(
	Object value,
	string locationName,
	LocationKind locationKind,
	LocationValidationContext context
)

Parameters

value
Type: System.Object
locationName
Type: System.String
locationKind
Type: PostSharp.Reflection.LocationKind
context
Type: PostSharp.Aspects.LocationValidationContext

Return Value

Type: Exception
See Also