TransportError
Defined in: react/src/client.ts:194
What a transport throws to say what became of a command.
refused: the host said no and did nothing, like a 4xx. The client takes the command back: a
message leaves the conversation and its text goes back to the person, the buttons of an answer
come back, and an observation stops trying unless error.retryable says a later try can
work. unknown: anything else, like a 5xx, a dropped connection or a timeout. The host may
have acted, so the client never repeats it on its own.
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new TransportError( outcome, error, options?): TransportError;Defined in: react/src/client.ts:199
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
outcome |
"unknown" | "refused" |
error |
DisplayError |
options? |
{ cause?: unknown; } |
options.cause? |
unknown |
Returns
Section titled “Returns”TransportError
Overrides
Section titled “Overrides”Error.constructorProperties
Section titled “Properties”cause?
Section titled “cause?”optional cause?: unknown;Defined in: node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es2022.error.d.ts:26
Inherited from
Section titled “Inherited from”Error.causereadonly error: DisplayError;Defined in: react/src/client.ts:197
Safe to show: the host wrote it, or the transport did.
message
Section titled “message”message: string;Defined in: node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1077
Inherited from
Section titled “Inherited from”Error.messagename: string;Defined in: node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1076
Inherited from
Section titled “Inherited from”Error.nameoutcome
Section titled “outcome”readonly outcome: "unknown" | "refused";Defined in: react/src/client.ts:195
stack?
Section titled “stack?”optional stack?: string;Defined in: node_modules/.bun/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1078
Inherited from
Section titled “Inherited from”Error.stack