Skip to main content

Module error

Module error 

Source
Expand description

The two error layers a Plexus client sees, kept apart by type.

The wire has two independent failure modes and conflating them is the bug this split exists to prevent:

LayerMeaningType
transportthe connection/HTTP call failed; nothing was said about the requestTransportError
in-bandthe server answered, and the answer is an error itemClientError::Remote

menger/web/index.html distinguishes these by depth (item.type === "error" vs item.content.type === "error"); here the distinction is in the type system instead.

Structs§

TransportError
A failure of the transport itself — the request never got an answer, or the answer was unintelligible.

Enums§

ClientError
Everything that can go wrong on a typed client call.
TransportErrorKind
What kind of transport failure occurred.