Skip to content
Docs
Reference

Class: TenderError

Class: TenderError in @ticketlayer/live.

@ticketlayer/live


@ticketlayer/live / index / TenderError

Defined in: core/tenders.ts:84

Thrown for a refusal this module makes itself, before any call. It uses the API's codes, so one reading serves both: a card or credit that cannot be spent now is STORED_VALUE_NOT_ACTIVE with its state, as the API's own refusal carries it.

Extends#

  • Error

Constructors#

Constructor#

new TenderError(
   message: string, 
   code: string, 
   state?: StoredValueInactiveState
): TenderError;

Defined in: core/tenders.ts:85

Parameters#

ParameterType
messagestring
codestring
state?StoredValueInactiveState

Returns#

TenderError

Overrides#

Error.constructor

Properties#

code#

readonly code: string;

Defined in: core/tenders.ts:87


state?#

readonly optional state?: StoredValueInactiveState;

Defined in: core/tenders.ts:88