Class CreateCouponLineItemException

This exception could be thrown by LineItemCtnr.createCouponLineItem(String, Boolean) when the provided coupon code is invalid.

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

Property Summary 

PropertyDescription
errorCode: String (read-only)Returns one of the error codes listed in the class doc.

Constructor Summary 

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

Method Summary 

MethodDescription
getErrorCode()Returns one of the error codes listed in the class doc.

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 one of the error codes listed in the class doc.


Method Details 

getErrorCode() 

getErrorCode(): String

Returns one of the error codes listed in the class doc.

Returns:

  • the error code

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