Class ShopperConsentErrorCodes

Error codes for ShopperConsentException.

These error codes indicate the reason why a shopper consent operation failed.

Constant Summary 

ConstantDescription
CUSTOMER_NOT_AUTHENTICATED: String = “CUSTOMER_NOT_AUTHENTICATED”Indicates that the customer is not authenticated.
FEATURE_DISABLED: String = “FEATURE_DISABLED”Indicates that the Marketing Consent feature is not enabled.
INTERNAL_ERROR: String = “INTERNAL_ERROR”Indicates that an internal error occurred.
RETRIEVAL_ERROR: String = “RETRIEVAL_ERROR”Indicates that an error occurred while retrieving consent subscriptions.
UPDATE_ERROR: String = “UPDATE_ERROR”Indicates that an error occurred while updating consent subscriptions.

Constructor Summary 

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

Method Summary 

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

Constant Details 

CUSTOMER_NOT_AUTHENTICATED 

CUSTOMER_NOT_AUTHENTICATED: String = "CUSTOMER_NOT_AUTHENTICATED"

Indicates that the customer is not authenticated.


FEATURE_DISABLED 

FEATURE_DISABLED: String = "FEATURE_DISABLED"

Indicates that the Marketing Consent feature is not enabled.


INTERNAL_ERROR 

INTERNAL_ERROR: String = "INTERNAL_ERROR"

Indicates that an internal error occurred.


RETRIEVAL_ERROR 

RETRIEVAL_ERROR: String = "RETRIEVAL_ERROR"

Indicates that an error occurred while retrieving consent subscriptions.


UPDATE_ERROR 

UPDATE_ERROR: String = "UPDATE_ERROR"

Indicates that an error occurred while updating consent subscriptions.


DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!