Skip to content

Class: TalklineError ​

Extends ​

  • Error

Constructors ​

Constructor ​

ts
new TalklineError(
   code, 
   detail?, 
   opts?
): TalklineError;

Parameters ​

ParameterTypeDefault value
codeTalklineErrorCodeundefined
detailstring''
opts{ cause?: unknown; info?: Record<string, unknown>; retryable?: boolean; }{}
opts.cause?unknownundefined
opts.info?Record<string, unknown>undefined
opts.retryable?booleanundefined

Returns ​

TalklineError

Overrides ​

ts
Error.constructor

Properties ​

PropertyModifierTypeDescription
codereadonlyTalklineErrorCode-
detailreadonlystringFor logs and bug reports. Never render it.
inforeadonlyRecord<string, unknown>Structured hints, e.g. { retryAfterMs: 3000 }.
retryablereadonlybooleanThe server's own hint. Client-raised errors are retryable when they say so.

Accessors ​

fromServer ​

Get Signature ​

ts
get fromServer(): boolean;

True when a server said this, false when this process did.

Returns ​

boolean

Talkline documentation