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.
- errorCode
Type: Microsoft.CommerceServer.Marketing..::.PromoCodeGenerationErrorCode
A PromoCodeGenerationErrorCode object that indicates the error code
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
ImportFileFormatException Class
ImportFileFormatException Members