RuleAlreadyExistsException Constructor (String, String, String)

Initializes a new instance of the RuleAlreadyExistsException class with the specified error message and parameters.

Namespace:  Microsoft.CommerceServer.Catalog
Assembly:  Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)

Syntax

'Declaration
Public Sub New ( _
    message As String, _
    entityName As String, _
    entityType As String _
)
'Usage
Dim message As String
Dim entityName As String
Dim entityType As String

Dim instance As New RuleAlreadyExistsException(message, _
    entityName, entityType)
public RuleAlreadyExistsException(
    string message,
    string entityName,
    string entityType
)
public:
RuleAlreadyExistsException(
    String^ message, 
    String^ entityName, 
    String^ entityType
)
public function RuleAlreadyExistsException(
    message : String, 
    entityName : String, 
    entityType : String
)

Parameters

  • message
    Type: System..::.String
    The error message that explains the reason for the exception.
  • entityName
    Type: System..::.String
    The name of the entity that caused the exception.

Remarks

All catalog exceptions, including the RuleAlreadyExistsException are derived from the CatalogException class. (The EntityAlreadyExistsException ultimately is derived from the CatalogException class.) The RuleAlreadyExistsException is thrown because you are attempting to perform an invalid operation. You are attempting to add or create a pricing rule or a virtual catalog rule that already exists.

Permissions

See Also

Reference

RuleAlreadyExistsException Class

RuleAlreadyExistsException Members

RuleAlreadyExistsException Overload

Microsoft.CommerceServer.Catalog Namespace