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

Property Summary 

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

Constructor Summary 

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

Method Summary 

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

Methods inherited from class Error 

captureStackTrace, toString

Methods inherited from class Object 

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

Property Details 

errorCode 

errorCode: String (read-only)

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


Method Details 

getErrorCode() 

getErrorCode(): String

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

Returns:

  • The error code.