Skip to content
Docs
Reference

Class: SeatReservationError

Class: SeatReservationError in @ticketlayer/live.

@ticketlayer/live


@ticketlayer/live / index / SeatReservationError

Defined in: seating.ts:679

A seat write the surface refused, with whatever it said beside the code (details, which every LiveAPIError carries; here it also takes what the surface said on data).

Extends#

Extended by#

Constructors#

Constructor#

new SeatReservationError(
   message: string, 
   code: string, 
   status: number, 
   details?: Record<string, unknown>, 
   extra?: {
  moreInfo?: string;
  requestId?: string;
}
): SeatReservationError;

Defined in: seating.ts:680

Parameters#

ParameterType
messagestring
codestring
statusnumber
detailsRecord<string, unknown>
extra{ moreInfo?: string; requestId?: string; }
extra.moreInfo?string
extra.requestId?string

Returns#

SeatReservationError

Overrides#

LiveAPIError.constructor

Properties#

code#

readonly code: string;

Defined in: client.ts:232

Inherited from#

LiveAPIError.code


data?#

readonly optional data?: Record<string, unknown>;

Defined in: client.ts:223

The fields the error envelope carries beyond message, code and moreInfo (for example state on STORED_VALUE_NOT_ACTIVE). Absent when the envelope has none.

Inherited from#

LiveAPIError.data


details#

readonly details: LiveAPIErrorDetails;

Defined in: client.ts:217

What the refusal said beside its message and code: alternatives on SEAT_UNAVAILABLE, suggestion and strands on SINGLE_SEAT_GAP, planVersion on PLAN_VERSION_CHANGED, and any other field of the error envelope or its error.details. Empty when it said nothing more.

Inherited from#

LiveAPIError.details


moreInfo?#

readonly optional moreInfo?: string;

Defined in: client.ts:204

The reference page for this error code, carrying the request id: <docs>/error/<CODE>?request=<requestId>. Backstage puts one in every error envelope (error.moreInfo) and Live passes the envelope through, so a commerce failure has one; it is absent for a failure Live or this client minted itself (the queue, a rate limit, an expired cart).

Inherited from#

LiveAPIError.moreInfo


requestId?#

readonly optional requestId?: string;

Defined in: client.ts:210

The request id stamped on this request (metadata.requestId, also echoed as x-request-id). Quote it to support: one id traces the storefront, Live and Backstage.

Inherited from#

LiveAPIError.requestId


retryAfter?#

readonly optional retryAfter?: number;

Defined in: client.ts:228

Seconds to wait before retrying, from a 429's Retry-After header (delta-seconds, or an HTTP date turned into seconds from now).

Inherited from#

LiveAPIError.retryAfter


status#

readonly status: number;

Defined in: client.ts:233

Inherited from#

LiveAPIError.status