Share via


RuleAlreadyExistsException Class

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

The exception that is thrown when an attempt is made to add or create a pricing rule or a virtual catalog rule that already exists.

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

Syntax

'Declaration
<SerializableAttribute> _
Public Class RuleAlreadyExistsException _
    Inherits EntityAlreadyExistsException
'Usage
Dim instance As RuleAlreadyExistsException
[SerializableAttribute]
public class RuleAlreadyExistsException : EntityAlreadyExistsException
[SerializableAttribute]
public ref class RuleAlreadyExistsException : public EntityAlreadyExistsException
public class RuleAlreadyExistsException extends EntityAlreadyExistsException

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.

Inheritance Hierarchy

System..::.Object
  System..::.Exception
    Microsoft.CommerceServer..::.EntityAlreadyExistsException
      Microsoft.CommerceServer.Catalog..::.RuleAlreadyExistsException

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

RuleAlreadyExistsException Members

Microsoft.CommerceServer.Catalog Namespace