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:

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

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

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

captureStackTrace, toString

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

errorCode: String (read-only)

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


getErrorCode(): String

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

Returns:

  • the error code