Jaa


ImportFileFormatException Constructor (String, PromoCodeGenerationErrorCode)

Initializes a new instance of the ImportFileFormatException class with the specified error message and 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 ( _
    message As String, _
    errorCode As PromoCodeGenerationErrorCode _
)
'Usage
Dim message As String
Dim errorCode As PromoCodeGenerationErrorCode

Dim instance As New ImportFileFormatException(message, _
    errorCode)
public ImportFileFormatException(
    string message,
    PromoCodeGenerationErrorCode errorCode
)
public:
ImportFileFormatException(
    String^ message, 
    PromoCodeGenerationErrorCode errorCode
)
public function ImportFileFormatException(
    message : String, 
    errorCode : PromoCodeGenerationErrorCode
)

Parameters

  • message
    Type: System..::.String
    The error message that explains the reason for the exception.

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