CartValidationException Class

Important

This content is archived and is not being updated. For the latest documentation, see Microsoft Dynamics 365 product documentation. For the latest release plans, see Dynamics 365 and Microsoft Power Platform release plans.

CartValidationException class is used to indicate invalid data passed to a cart opertion.

Namespace:  Microsoft.Dynamics.Commerce.Runtime
Assembly:  Microsoft.Dynamics.Commerce.Runtime.Entities (in Microsoft.Dynamics.Commerce.Runtime.Entities.dll)

Syntax

'Declaration
Public Class CartValidationException _
    Inherits DataValidationException
'Usage
Dim instance As CartValidationException
public class CartValidationException : DataValidationException
public ref class CartValidationException : public DataValidationException

Inheritance Hierarchy

System.Object
  System.Exception
    Microsoft.Dynamics.Commerce.Runtime.CommerceRuntimeException
      Microsoft.Dynamics.Commerce.Runtime.DataValidationException
        Microsoft.Dynamics.Commerce.Runtime.CartValidationException

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

Microsoft.Dynamics.Commerce.Runtime Namespace