Class ShopperConsentException

This exception is thrown by ShopperConsentMgr methods when an error occurs during consent subscription operations.

The ‘errorCode’ property is set to one of the following values:

Property Summary 

PropertyDescription
errorCode: String (read-only)Returns the error code indicating the reason for the failure.

Constructor Summary 

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

Method Summary 

MethodDescription
getErrorCode()Returns the error code indicating the reason for the failure.

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)

Returns the error code indicating the reason for the failure.


Method Details 

getErrorCode() 

getErrorCode(): String

Returns the error code indicating the reason for the failure.

Returns:

  • The error code.

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