Class NonNullCartValidator
Cart Validator that simply checks that the cart itself and the items within are not null. Also checks that each item within the cart has a non-null product definition. The other content of the cart items and their format are not checked.
Implements
Inherited Members
Namespace: UnityEngine.Purchasing
Assembly: Unity.Purchasing.dll
Syntax
public class NonNullCartValidator : ICartValidator
Methods
Validate(ICart)
Validates that the cart, its items and product definition are not null.
Declaration
public void Validate(ICart cart)
Parameters
Type | Name | Description |
---|---|---|
ICart | cart | The |
Exceptions
Type | Condition |
---|---|
InvalidCartException | Thrown if the cart itself or its items list are null. |
InvalidCartItemException | Thrown if any item within the cart has a null product definition, or if the product or cart item itself is null. |