dw.customer.shoppercontext
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:
- ShopperContextErrorCodes.FEATURE_DISABLED = Indicates that the Shopper Context Feature is not enabled.
- ShopperContextErrorCodes.CUSTOM_QUALIFIERS_LIMIT_EXCEEDED = Indicates that the number of custom qualifiers in ShopperContext has exceeded the allowed limit.
- ShopperContextErrorCodes.ASSIGNMENT_QUALIFIERS_LIMIT_EXCEEDED = Indicates that the number of assignment qualifiers in ShopperContext has exceeded the allowed limit.
- ShopperContextErrorCodes.QUOTA_LIMIT_EXCEEDED = Indicates that the quota limit
for the Shopper Context has been reached.
For more information on shopper context quota limits please refer to: Shopper Context Quota Limits
- ShopperContextErrorCodes.INTERNAL_ERROR = Indicates that an error occurred while setting, retrieving or deleting the shopper context.
- ShopperContextErrorCodes.INVALID_ARGUMENT = Indicates that an invalid client IP address was set in the Shopper Context.
- ShopperContextErrorCodes.INVALID_REQUEST_TYPE = Indicates that the request type is invalid. Request must be a SCAPI request, or a hybrid storefront request, or an OCAPI request using a SLAS token.
Properties
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
Methods inherited from class
Error
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
© Copyright 2000-2025, salesforce.com inc. All rights reserved. Various trademarks held by their respective owners.