ContractExceptionFactory.CreateException Method |
Creates the exception based on the contents of ContractExceptionInfo.
Namespace: PostSharp.Patterns.Contracts
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.10.10.0 (6.10.10.0)
C#
public virtual Exception CreateException( ContractExceptionInfo exceptionInfo )
Parameters
- exceptionInfo
- Type: PostSharp.Patterns.Contracts.ContractExceptionInfo
Information to be used for the creation of the requested exception.
Return Value
Type: ExceptionThe requested exception