Home > widget-integration > CartErrorType

CartErrorType enum

Cart error types for categorization and handling

Used to categorize cart errors for logging, analytics, and customized error handling by Technical Support teams.

Signature:

export declare enum CartErrorType 

Enumeration Members

Member

Value

Description

ADD_TO_CART_EXCEPTION

"add_to_cart_exception"

Exception thrown during add to cart operation

ADD_TO_CART_FAILED

"add_to_cart_failed"

Failed to add item to cart (API error, network error)

INVALID_QUANTITY

"invalid_quantity"

Invalid quantity specified

INVENTORY_UNAVAILABLE

"inventory_unavailable"

Product inventory unavailable

TIMEOUT

"timeout"

Cart operation timeout

UNKNOWN

"unknown"

Unknown error

VALIDATION_FAILED

"validation_failed"

Cart item validation failed