Appearance
Class: TalklineApiError
A refusal from the control API: its RFC 9457 problem document, whole.
Branch on code, never on message or detail — detail is for a log, and no text from Talkline is meant for a user.
Extends
Error
Constructors
Constructor
ts
new TalklineApiError(problem, retryAfterSec?): TalklineApiError;Parameters
| Parameter | Type | Default value |
|---|---|---|
problem | Problem | undefined |
retryAfterSec | number | null | null |
Returns
TalklineApiError
Overrides
ts
Error.constructor