Class ShopperContextException

This exception could be thrown by ShopperContextMgr.setShopperContext(ShopperContext, Boolean), ShopperContextMgr.getShopperContext() and ShopperContextMgr.removeShopperContext() when an error occurs.

'errorCode' property is set to one of the following values:

For more information on shopper context quota limits please refer to: Shopper Context Quota Limits

PropertyDescription
errorCode: String (read-only)Indicates reason why the following methods failed: ShopperContextMgr.setShopperContext(ShopperContext, Boolean) or ShopperContextMgr.getShopperContext() or ShopperContextMgr.removeShopperContext() failed.

This class does not have a constructor, so you cannot create it directly.

MethodDescription
getErrorCode()Indicates reason why the following methods failed: ShopperContextMgr.setShopperContext(ShopperContext, Boolean) or ShopperContextMgr.getShopperContext() or ShopperContextMgr.removeShopperContext() failed.

captureStackTrace, toString

assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values

errorCode: String (read-only)

Indicates reason why the following methods failed: ShopperContextMgr.setShopperContext(ShopperContext, Boolean) or ShopperContextMgr.getShopperContext() or ShopperContextMgr.removeShopperContext() failed.


getErrorCode(): String

Indicates reason why the following methods failed: ShopperContextMgr.setShopperContext(ShopperContext, Boolean) or ShopperContextMgr.getShopperContext() or ShopperContextMgr.removeShopperContext() failed.

Returns:

  • The error code.