PostSharp 6.8 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Contracts Namespace / Default­Contract­Exception­Factory Class / Default­Contract­Exception­Factory Methods / Default­Contract­Exception­Factory.​Create­Exception Method

DefaultContractExceptionFactory.CreateException Method

Base class for contract exception factories. Implements chain of responsibility between concrete exception factories.

Namespace:  PostSharp.Patterns.Contracts
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.8.6.0 (6.8.6.0)
Syntax
C#
public override Exception CreateException(
	ContractExceptionInfo exceptionInfo
)

Parameters

exceptionInfo
Type: PostSharp.Patterns.Contracts.ContractExceptionInfo

Return Value

Type: Exception
See Also