PostSharpAPI ReferencePost­Sharp.​Patterns.​ContractsContract­Exception­FactoryCreate­Exception
Open sandboxFocus

Method CreateException

CreateException(ContractExceptionInfo)

Creates the exception based on the contents of ContractExceptionInfo.

Declaration
public virtual Exception CreateException(ContractExceptionInfo exceptionInfo)
Parameters
Type Name Description
ContractExceptionInfo exceptionInfo

Information to be used for the creation of the requested exception.

Returns
Type Description
Exception

The requested exception