Partager via


ImportFileFormatException Constructor (PromoCodeGenerationErrorCode)

Initializes a new instance of the PromoCodeGenerationErrorCode that caused the error.

Namespace:  Microsoft.CommerceServer.Marketing
Assembly:  Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)

Syntax

'Declaration
Public Sub New ( _
    errorCode As PromoCodeGenerationErrorCode _
)
'Usage
Dim errorCode As PromoCodeGenerationErrorCode

Dim instance As New ImportFileFormatException(errorCode)
public ImportFileFormatException(
    PromoCodeGenerationErrorCode errorCode
)
public:
ImportFileFormatException(
    PromoCodeGenerationErrorCode errorCode
)
public function ImportFileFormatException(
    errorCode : PromoCodeGenerationErrorCode
)

Parameters

Remarks

The ImportFileFormatException is the exception that is thrown when the format of an imported coupon file is invalid.

The PromoCodeGenerationErrorCode enumeration value indicates the cause of the error.

A non nullNothingnullptra null reference (Nothing in Visual Basic)errorCode indicates the current exception is raised in a catch block that handles the inner exception.

Permissions

See Also

Reference

ImportFileFormatException Class

ImportFileFormatException Members

ImportFileFormatException Overload

Microsoft.CommerceServer.Marketing Namespace