Appearance
Class: TalklineError
Extends
Error
Constructors
Constructor
ts
new TalklineError(
code,
detail?,
opts?
): TalklineError;Parameters
| Parameter | Type | Default value |
|---|---|---|
code | TalklineErrorCode | undefined |
detail | string | '' |
opts | { cause?: unknown; info?: Record<string, unknown>; retryable?: boolean; } | {} |
opts.cause? | unknown | undefined |
opts.info? | Record<string, unknown> | undefined |
opts.retryable? | boolean | undefined |
Returns
TalklineError
Overrides
ts
Error.constructorProperties
| Property | Modifier | Type | Description |
|---|---|---|---|
code | readonly | TalklineErrorCode | - |
detail | readonly | string | For logs and bug reports. Never render it. |
info | readonly | Record<string, unknown> | Structured hints, e.g. { retryAfterMs: 3000 }. |
retryable | readonly | boolean | The 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