NoPrimaryParentCategoryException Class

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

The exception that is thrown when attempting to set Use Category Pricing on an item with no primary parent category defined.

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

Syntax

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

Remarks

All catalog exceptions, including the NoPrimaryParentCategoryException are derived from the CatalogException class. (The CatalogPricingException is derived from the CatalogException class.) The NoPrimaryParentCategoryException is thrown because you are attempting to use CategoryPricing on an item and there is no primary parent category defined. You are prohibited from using Category Pricing if there is no primary parent category.

Inheritance Hierarchy

System..::.Object
  System..::.Exception
    Microsoft.CommerceServer.Catalog..::.CatalogException
      Microsoft.CommerceServer.Catalog..::.CatalogPricingException
        Microsoft.CommerceServer.Catalog..::.NoPrimaryParentCategoryException

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

NoPrimaryParentCategoryException Members

Microsoft.CommerceServer.Catalog Namespace